mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-27 20:18:01 +02:00
Revamp Stdcall
This commit is contained in:
parent
7b4239d08e
commit
ad0dab0d4c
58 changed files with 1398 additions and 1398 deletions
|
@ -72,64 +72,64 @@ namespace Beefy
|
|||
public Matrix4? mColorMatrix;
|
||||
public ConstantDataDefinition mColorMatrixDataDef = new ConstantDataDefinition(16, new ConstantDataDefinition.DataType[] { ConstantDataDefinition.DataType.Matrix | ConstantDataDefinition.DataType.PixelShaderUsage }) ~ delete _;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Lib_Startup(int32 argc, char8** argv, void* startupCallback);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_GetDesktopResolution(out int32 width, out int32 height);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_GetWorkspaceRect(out int32 x, out int32 y, out int32 width, out int32 height);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_GetWorkspaceRectFrom(int32 x, int32 y, int32 width, int32 height, out int32 outX, out int32 outY, out int32 outWidth, out int32 outHeight);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_Create();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_Delete();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_SetRefreshRate(int32 rate);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BFApp_SetDrawEnabled(int32 enabled);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_Init();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_Run();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_Shutdown();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_SetCallbacks(void* updateDelegate, void* drawDelegate);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern char8* BFApp_GetInstallDir();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_SetCursor(int32 cursor);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* BFApp_GetClipboardData(char8* format, out int32 size);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_ReleaseClipboardData(void* ptr);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFApp_SetClipboardData(char8* format, void* ptr, int32 size, int32 resetClipboard);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BFApp_CheckMemory();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BFApp_RehupMouse();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void* BFApp_GetSoundManager();
|
||||
|
||||
UpdateDelegate mUpdateDelegate ~ delete _;
|
||||
|
|
|
@ -179,71 +179,71 @@ namespace Beefy
|
|||
static NativeMouseLeaveDelegate sNativeMouseLeaveDelegate ~ delete _;
|
||||
static NativeMenuItemSelectedDelegate sNativeMenuItemSelectedDelegate ~ delete _;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* BFApp_CreateWindow(void* parent, char8* title, int32 x, int32 y, int32 width, int32 height, int32 windowFlags);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* BFWindow_GetNativeUnderlying(void* window);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_SetCallbacks(void* window, void* movedDelegate, void* closeQueryDelegate, void* closedDelegate,
|
||||
void* gotFocusDelegate, void* lostFocusDelegate,
|
||||
void* keyCharDelegate, void* keyDownDelegate, void* keyUpDelegate, void* hitTestDelegate,
|
||||
void* mouseMoveDelegate, void* mouseProxyMoveDelegate, void* mouseDownDelegate, void* mouseUpDelegate, void* mouseWheelDelegate, void* mouseLeaveDelegate,
|
||||
void* menuItemSelectedDelegate);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_SetTitle(void* window, char8* title);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_SetMinimumSize(void* window, int32 minWidth, int32 minHeight, bool clientSized);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_GetPosition(void* window, out int32 x, out int32 y, out int32 width, out int32 height, out int32 clientX, out int32 clientY, out int32 clientWidth, out int32 clientHeight);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_GetPlacement(void* window, out int32 normX, out int32 normY, out int32 normWidth, out int32 normHeight, out int32 showKind);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_Resize(void* window, int32 x, int32 y, int32 width, int32 height, int showKind);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_Close(void* window, int32 force);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_SetForeground(void* window);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_LostFocus(void* window, void* newFocus);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_SetNonExclusiveMouseCapture(void* window);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_SetClientPosition(void* window, int32 x, int32 y);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_SetAlpha(void* window, float alpha, uint32 destAlphaSrcMask, int32 mouseVisible);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_SetMouseVisible(void* window, bool mouseVisible);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BFWindow_CaptureMouse(void* window);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern bool BFWindow_IsMouseCaptured(void* window);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* BFWindow_AddMenuItem(void* window, void* parent, int32 insertIdx, char8* text, char8* hotKey, void* bitmap, int32 enabled, int32 checkState, int32 radioCheck);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* BFWindow_ModifyMenuItem(void* window, void* item, char8* text, char8* hotKey, void* bitmap, int32 enabled, int32 checkState, int32 radioCheck);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* BFWindow_DeleteMenuItem(void* window, void* item);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int BFWindow_GetDPI(void* window);
|
||||
|
||||
public static BFWindow GetBFWindow(void* window)
|
||||
|
|
|
@ -13,10 +13,10 @@ namespace Beefy
|
|||
{
|
||||
static Random mRandom = new Random() ~ delete _;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 BF_TickCount();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 BF_TickCountMicroFast();
|
||||
|
||||
public static float Deg2Rad = Math.PI_f / 180.0f;
|
||||
|
|
|
@ -13,19 +13,19 @@ namespace Beefy.gfx
|
|||
#if !STUDIO_CLIENT
|
||||
public class DrawLayer
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* DrawLayer_Create(void* window);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void DrawLayer_Delete(void* drawLayer);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void DrawLayer_Clear(void* drawLayer);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void DrawLayer_Activate(void* drawLayer);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void DrawLayer_DrawToRenderTarget(void* drawLayer, void* texture);
|
||||
|
||||
public void* mNativeDrawLayer;
|
||||
|
|
|
@ -38,19 +38,19 @@ namespace Beefy.gfx
|
|||
|
||||
public class Font
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern FTFont* FTFont_Load(char8* fileName, float pointSize);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void FTFont_Delete(FTFont* ftFont, bool cacheRetain);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void FTFont_ClearCache();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern FTGlyph* FTFont_AllocGlyph(FTFont* ftFont, int32 char8Code, bool allowDefault);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 FTFont_GetKerning(FTFont* font, int32 char8CodeA, int32 char8CodeB);
|
||||
|
||||
static Dictionary<String, String> sFontNameMap ~ DeleteDictionaryAndKeysAndItems!(_);
|
||||
|
|
|
@ -400,37 +400,37 @@ namespace Beefy.gfx
|
|||
#if !STUDIO_CLIENT
|
||||
public class Graphics : GraphicsBase
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_SetRenderState(void* renderState);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_AllocTris(void* textureSegment, int32 vtxCount);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_SetDrawVertex(int32 idx, float x, float y, float z, float u, float v, uint32 color);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_CopyDrawVertex(int32 destIdx, int32 srcIdx);
|
||||
|
||||
//[StdCall, CLink]
|
||||
//[CallingConvention(.Stdcall), CLink]
|
||||
//static unsafe extern void Gfx_DrawIndexedVertices2D(void* vtxData, int vtxCount, int* idxData, int idxCount, float a, float b, float c, float d, float tx, float ty, float z);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_DrawIndexedVertices2D(int32 vertexSize, void* vtxData, int32 vtxCount, uint16* idxData, int32 idxCount, float a, float b, float c, float d, float tx, float ty, float z);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_SetShaderConstantData(int32 slotIdx, void* data, int32 size);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_SetShaderConstantDataTyped(int32 slotIdx, void* data, int32 size, int32* typeData, int32 typeCount);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_DrawQuads(void* textureSegment, Vertex3D* vertices, int32 vtxCount);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void* Gfx_QueueRenderCmd(void* nativeRenderCmd);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void Gfx_SetTexture_TextureSegment(int32 textureIdx, void* textureSegment);
|
||||
|
||||
public this()
|
||||
|
|
|
@ -33,40 +33,40 @@ namespace Beefy.gfx
|
|||
public void* mNativeTextureSegment;
|
||||
public PixelSnapping mPixelSnapping = PixelSnapping.Auto;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void Gfx_DrawTextureSegment(void* textureSegment, float a, float b, float c, float d, float tx, float ty, float z, uint32 color, int32 pixelSnapping);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_LoadTexture(char8* fileName, int32 flags);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_CreateDynTexture(int32 width, int32 height);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_CreateRenderTarget(int32 width, int32 height, int32 destAlpha);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_ModifyTextureSegment(void* destSegment, void* srcTextureSegment, int32 srcX, int32 srcY, int32 srcWidth, int32 srcHeight);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_CreateTextureSegment(void* textureSegment, int32 srcX, int32 srcY, int32 srcWidth, int32 srcHeight);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void Gfx_SetDrawSize(void* textureSegment, int32 width, int32 height);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_Texture_SetBits(void* textureSegment, int32 destX, int32 destY, int32 destWidth, int32 destHeight, int32 srcPitch, uint32* bits);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_Texture_GetBits(void* textureSegment, int32 srcX, int32 srcY, int32 srcWidth, int32 srcHeight, int32 destPitch, uint32* bits);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_Texture_Delete(void* textureSegment);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 Gfx_Texture_GetWidth(void* textureSegment);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 Gfx_Texture_GetHeight(void* textureSegment);
|
||||
|
||||
public this()
|
||||
|
|
|
@ -56,16 +56,16 @@ namespace Beefy.gfx
|
|||
public String mName;
|
||||
public int32 mAnimIdx;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void ModelDefAnimation_GetJointTranslation(void* nativeAnimation, int32 jointIdx, float frame, out JointTranslation jointTranslation);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static int32 ModelDefAnimation_GetFrameCount(void* nativeAnimation);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static char8* ModelDefAnimation_GetName(void* nativeAnimation);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void ModelDefAnimation_Clip(void* nativeAnimation, int32 startFrame, int32 numFrames);
|
||||
|
||||
public this(void* nativeModelDefAnimation)
|
||||
|
@ -93,22 +93,22 @@ namespace Beefy.gfx
|
|||
public Animation[] mAnims;
|
||||
public Dictionary<String, Animation> mAnimMap = new Dictionary<String, Animation>();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void* Res_OpenFBX(String fileName, void* nativeVertexDef);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void* ModelDef_CreateModelInstance(void* nativeModel);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static float ModelDef_GetFrameRate(void* nativeModel);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static int32 ModelDef_GetJointCount(void* nativeModel);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static int32 ModelDef_GetAnimCount(void* nativeModel);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void* ModelDef_GetAnimation(void* nativeModel, int32 animIdx);
|
||||
|
||||
this(void* nativeModelDef)
|
||||
|
@ -154,10 +154,10 @@ namespace Beefy.gfx
|
|||
|
||||
public class ModelInstance : RenderCmd
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void ModelInstance_SetJointTranslation(void* nativeModelInstance, int32 jointIdx, ref ModelDef.JointTranslation jointTranslation);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void ModelInstance_SetMeshVisibility(void* nativeModelInstance, int32 jointIdx, int32 visibility);
|
||||
|
||||
public ModelDef mModelDef;
|
||||
|
|
|
@ -22,25 +22,25 @@ namespace Beefy.gfx
|
|||
#if !STUDIO_CLIENT
|
||||
public class RenderState
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_CreateRenderState(void* srcNativeRenderState);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void RenderState_Delete(void* renderState);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void RenderState_SetClip(void* renderState, float x, float y, float width, float height);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void RenderState_DisableClip(void* renderState);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void RenderState_SetShader(void* nativeRenderState, void* nativeShader);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void RenderState_SetDepthFunc(void* nativeRenderState, int32 depthFunc);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void RenderState_SetDepthWrite(void* nativeRenderState, int32 depthWrite);
|
||||
|
||||
public void* mNativeRenderState;
|
||||
|
|
|
@ -19,13 +19,13 @@ namespace Beefy.gfx
|
|||
public void* mNativeShader;
|
||||
public Dictionary<String, ShaderParam> mShaderParamMap;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_LoadShader(char8* fileName, void* vertexDefinition);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_Shader_Delete(void* shader);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_GetShaderParam(void* shader, String paramName);
|
||||
|
||||
public static Shader CreateFromFile(String fileName, VertexDefinition vertexDefinition)
|
||||
|
|
|
@ -34,10 +34,10 @@ namespace Beefy.gfx
|
|||
}
|
||||
|
||||
#if !STUDIO_CLIENT
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* Gfx_CreateVertexDefinition(VertexDefData* elementData, int32 numElements);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Gfx_VertexDefinition_Delete(void* nativeVertexDefinition);
|
||||
|
||||
public void* mNativeVertexDefinition;
|
||||
|
|
|
@ -8,13 +8,13 @@ namespace Beefy.res
|
|||
#if !STUDIO_CLIENT
|
||||
public class PSDLayer
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void Res_PSDLayer_GetSize(void* layerInfo, out int32 x, out int32 y, out int32 width, out int32 height);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static int32 Res_PSDLayer_GetLayerId(void* layerInfo);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static char8* Res_PSDLayer_GetName(void* layerInfo);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static int32 Res_PSDLayer_IsVisible(void* layerInfo);
|
||||
|
||||
public void* mNativeLayerInfo;
|
||||
|
@ -49,22 +49,22 @@ namespace Beefy.res
|
|||
|
||||
public class PSDReader
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void* Res_OpenPSD(String fileName);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void Res_DeletePSDReader(void* pSDReader);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static int32 Res_PSD_GetLayerCount(void* pSDReader);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void* Res_PSD_GetLayerTexture(void* pSDReader, int32 layerIdx, out int32 xOfs, out int32 yOfs);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void* Res_PSD_GetMergedLayerTexture(void* pSDReader, void* layerIndices, int32 count, out int32 xOfs, out int32 yOfs);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void* Res_PSD_GetLayerInfo(void* pSDReader, int32 layerIdx);
|
||||
|
||||
void* mNativePSDReader;
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace Beefy.res
|
|||
|
||||
public class ResourceManager
|
||||
{
|
||||
/*[StdCall, CLink]
|
||||
/*[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Wwise_Shutdown();*/
|
||||
|
||||
public Dictionary<String, ResGroup> mResGroupMap = new Dictionary<String, ResGroup>() ~ delete _;
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Beefy.res
|
|||
{
|
||||
/*public class SoundBank
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Wwise_LoadBankByName(String name);
|
||||
|
||||
public String mName;
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Beefy.res
|
|||
{
|
||||
/*public class SoundEvent
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void Wwise_SendEvent(uint32 eventId, void* objectId);
|
||||
|
||||
public uint32 mWwiseEventId;
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Beefy.res
|
|||
{
|
||||
/*public class SoundParameter
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 Wwise_SetRTPCValue(uint32 paramId, float value, void* soundGameObject);
|
||||
|
||||
public uint32 mWwiseParamId;
|
||||
|
|
|
@ -4,13 +4,13 @@ namespace Beefy.sound
|
|||
{
|
||||
struct SoundInstance
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void* BFSoundInstance_Play(void* nativeSoundInstance, bool looping, bool autoRelease);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BFSoundInstance_Release(void* nativeSoundInstance);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern bool BFSoundInstance_IsPlaying(void* nativeSoundInstance);
|
||||
|
||||
void* mNativeSoundInstance;
|
||||
|
|
|
@ -17,10 +17,10 @@ namespace Beefy.sound
|
|||
{
|
||||
void* mNativeSoundManager;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int32 BFSoundManager_LoadSound(void* nativeSoundManager, char8* fileName);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void* BFSoundManager_GetSoundInstance(void* nativeSoundManager, int32 sfxId);
|
||||
|
||||
public SoundSource LoadSound(StringView fileName)
|
||||
|
|
|
@ -4,34 +4,34 @@ namespace Beefy.utils
|
|||
{
|
||||
static class BeefPerf
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpInit(char8* severName, char8* sessionName);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpShutdown();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpRetryConnect();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpPause();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpUnpause();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpSetThreadName(char8* threadName);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpEnter(char8* name);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpLeave();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void BpEvent(char8* name, char8* details);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static char8* BpDynStr(char8* string);
|
||||
|
||||
public static void Init(StringView serverName, StringView sessionName)
|
||||
|
|
|
@ -13,13 +13,13 @@ namespace Beefy2D.utils
|
|||
|
||||
void* mNativeNetRequest;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void* HTTP_GetFile(char8* url, char8* destPath);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 HTTP_GetResult(void* netRequest, int32 waitMS);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void HTTP_Delete(void* netRequest);
|
||||
|
||||
public ~this()
|
||||
|
|
|
@ -6,25 +6,25 @@ namespace Beefy.utils
|
|||
{
|
||||
public abstract class PerfTimer
|
||||
{
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void PerfTimer_ZoneStart(char8* name);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void PerfTimer_ZoneEnd();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void PerfTimer_Message(char8* theString);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static int32 PerfTimer_IsRecording();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void PerfTimer_StartRecording();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void PerfTimer_StopRecording();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
extern static void PerfTimer_DbgPrint();
|
||||
|
||||
static DisposeProxy mZoneEndDisposeProxy ~ delete _;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -285,11 +285,11 @@ namespace MiniZ
|
|||
DoNotSortCentralDirectory = 0x0800
|
||||
}
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern void* malloc(int size);
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern void free(void* ptr);
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern void* realloc(void* ptr, int newSize);
|
||||
|
||||
static void* def_alloc_func(void* opaque, int items, int size)
|
||||
|
@ -2726,42 +2726,42 @@ namespace MiniZ
|
|||
const int32 SEEK_END = 2;
|
||||
const int32 SEEK_SET = 0;
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern FILE* fopen(char8* fileName, char8* mode);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern FILE* freopen(char8* fileName, char8* mode, FILE* stream);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 fclose(FILE* stream);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 fflush(FILE* stream);
|
||||
|
||||
//[StdCall, CLink]
|
||||
//[CallingConvention(.Stdcall), CLink]
|
||||
//static extern int64 ftell64(FILE* stream);
|
||||
static int64 ftell64(FILE* stream)
|
||||
{
|
||||
return _ftelli64(stream);
|
||||
}
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int64 _ftelli64(FILE* stream);
|
||||
|
||||
//[StdCall, CLink]
|
||||
//[CallingConvention(.Stdcall), CLink]
|
||||
//static extern int64 fseek64(FILE* stream, int64 offset, int32 origin);
|
||||
static int32 fseek64(FILE* stream, int64 offset, int32 origin)
|
||||
{
|
||||
return _fseeki64(stream, offset, origin);
|
||||
}
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 _fseeki64(FILE* stream, int64 offset, int32 origin);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int fread(void* buf, int elementSize, int elementCount, FILE* stream);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int fwrite(void* buf, int elementSize, int elementCount, FILE* stream);
|
||||
|
||||
public struct ZipInternalState
|
||||
|
@ -2840,13 +2840,13 @@ namespace MiniZ
|
|||
public int32 tm_isdst; // daylight savings time flag
|
||||
};
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern time_t time(out time_t time);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern time_t mktime(tm* time);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern tm* localtime(time_t* time);
|
||||
|
||||
static time_t zip_dos_to_time_t(int32 dos_time, int32 dos_date)
|
||||
|
@ -2895,7 +2895,7 @@ namespace MiniZ
|
|||
public time_t modtime; // modification time
|
||||
};
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 _utime64(char8* fileName, utimbuf* t);
|
||||
|
||||
static bool zip_set_file_times(char8* pFilename, time_t access_time, time_t modified_time)
|
||||
|
@ -4663,7 +4663,7 @@ namespace MiniZ
|
|||
public time_t st_ctime;
|
||||
};
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 _fstat64i32(char8* fileName, FILE_STAT_STRUCT* stat);
|
||||
|
||||
bool zip_add_mem_to_archive_file_in_place(char8* pZip_filename, char8* pArchive_name, void* pBuf, int buf_size, void* pComment, uint16 comment_size, ZipFlags level_and_flags_in)
|
||||
|
|
|
@ -42,13 +42,13 @@ namespace System
|
|||
public uint16[2] mMaximumWindowSize;
|
||||
}
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int SetConsoleTextAttribute(void* hConsoleOutput, uint16 wAttributes);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int GetConsoleScreenBufferInfo(void* hConsoleOutput, out CONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern void* GetStdHandle(uint32 nStdHandle);
|
||||
|
||||
#if BF_PLATFORM_WINDOWS
|
||||
|
|
|
@ -148,7 +148,7 @@ namespace System
|
|||
return .Ok(strtod(tempStr, null));
|
||||
}
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 ftoa(float val, char8* str);
|
||||
|
||||
static extern int32 ToString(double val, char8* str);
|
||||
|
|
|
@ -130,7 +130,7 @@ namespace System
|
|||
return 1;
|
||||
}
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern int32 ftoa(float val, char8* str);
|
||||
|
||||
static extern int32 ToString(float val, char8* str);
|
||||
|
|
|
@ -128,57 +128,57 @@ namespace System.Net
|
|||
}
|
||||
|
||||
#if BF_PLATFORM_WINDOWS
|
||||
[Import("wsock32.lib"), CLink, StdCall]
|
||||
[Import("wsock32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 WSAStartup(uint16 versionRequired, WSAData* wsaData);
|
||||
|
||||
[Import("wsock32.lib"), CLink, StdCall]
|
||||
[Import("wsock32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 WSAGetLastError();
|
||||
#else
|
||||
[CLink]
|
||||
static int32 errno;
|
||||
#endif
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern HostEnt* gethostbyname(char8* name);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern HSocket socket(int32 af, int32 type, int32 protocol);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 connect(HSocket s, SockAddr* name, int32 nameLen);
|
||||
|
||||
#if BF_PLATFORM_WINDOWS
|
||||
[Import("wsock32.lib"), CLink, StdCall]
|
||||
[Import("wsock32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 closesocket(HSocket s);
|
||||
#else
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 close(HSocket s);
|
||||
#endif
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 bind(HSocket s, SockAddr* name, int32 nameLen);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 listen(HSocket s, int32 backlog);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern HSocket accept(HSocket s, SockAddr* addr, int32* addrLen);
|
||||
|
||||
#if BF_PLATFORM_WINDOWS
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 ioctlsocket(HSocket s, int cmd, int* argp);
|
||||
#else
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 ioctl(HSocket s, int cmd, int* argp);
|
||||
#endif
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 select(int nfds, FDSet* readFDS, FDSet* writeFDS, FDSet* exceptFDS, TimeVal* timeVal);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 recv(HSocket s, void* ptr, int32 len, int32 flags);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
static extern int32 send(HSocket s, void* ptr, int32 len, int32 flags);
|
||||
|
||||
public ~this()
|
||||
|
|
|
@ -78,34 +78,34 @@ namespace System
|
|||
public uint32 dwFileDateLS; // e.g. 0
|
||||
}
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
extern static bool GetVersionExA(OSVersionInfoExA* lpVersionInformation);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
extern static bool VerifyVersionInfoA(OSVersionInfoExA* lpVersionInformation, uint32 dwTypeMask, uint64 dwlConditionMask);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
extern static uint64 VerSetConditionMask(uint64 dwlConditionMask, uint32 dwTypeBitMask, uint8 dwConditionMask);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
extern static void GetNativeSystemInfo(SystemInfo* lpSystemInformation);
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
extern static void GetSystemInfo(SystemInfo* lpSystemInfo);
|
||||
|
||||
[Import("netapi32.lib"), CLink, StdCall]
|
||||
[Import("netapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
extern static uint32 NetWkstaGetInfo(char16* ServerName, uint32 Level, LPWKSTA_INFO_100* BufPtr);
|
||||
[Import("netapi32.lib"), CLink, StdCall]
|
||||
[Import("netapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
extern static int32 NetApiBufferFree(LPWKSTA_INFO_100 BufPtr);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
extern static uint32 GetFileVersionInfoSizeA(char8* lptstrFilename, uint32* lpdwHandle);
|
||||
|
||||
[Import("version.lib"), CLink, StdCall]
|
||||
[Import("version.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
extern static bool GetFileVersionInfoA(char8* lptstrFilename, uint32* dwHandle, uint32 dwLen, void* lpData);
|
||||
[Import("version.lib"), CLink, StdCall]
|
||||
[Import("version.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
extern static bool VerQueryValueA(void* pBlock, char8* lpSubBlock, void** lplpBuffer, uint32* puLen);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
extern static int GetSystemMetrics(int nIndex);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -50,47 +50,47 @@ namespace System
|
|||
TempFileError = (int)Result.TempFileError
|
||||
}
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint32 BfpSystem_TickCount();
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpTimeStamp BfpSystem_GetTimeStamp();
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint8 BfpSystem_InterlockedExchange8(uint8* ptr, uint8 val); /// Returns the initial value in 'ptr'
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint16 BfpSystem_InterlockedExchange16(uint16* ptr, uint16 val); /// Returns the initial value in 'ptr'
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint32 BfpSystem_InterlockedExchange32(uint32* ptr, uint32 val); /// Returns the initial value in 'ptr'
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint64 BfpSystem_InterlockedExchange64(uint64* ptr, uint64 val); /// Returns the initial value in 'ptr'
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint8 BfpSystem_InterlockedExchangeAdd8(uint8* ptr, uint8 val); /// Returns the initial value in 'ptr'
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint16 BfpSystem_InterlockedExchangeAdd16(uint16* ptr, uint16 val); /// Returns the initial value in 'ptr'
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint32 BfpSystem_InterlockedExchangeAdd32(uint32* ptr, uint32 val); /// Returns the initial value in 'ptr'
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint64 BfpSystem_InterlockedExchangeAdd64(uint64* ptr, uint64 val);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint8 BfpSystem_InterlockedCompareExchange8(uint8* ptr, uint8 oldVal, uint8 newVal);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint16 BfpSystem_InterlockedCompareExchange16(uint16* ptr, uint16 oldVal, uint16 newVal);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint32 BfpSystem_InterlockedCompareExchange32(uint32* ptr, uint32 oldVal, uint32 newVal);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern uint64 BfpSystem_InterlockedCompareExchange64(uint64* ptr, uint64 oldVal, uint64 newVal);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpSystem_GetExecutablePath(char8* outStr, int32* inOutStrSize, BfpSystemResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpSystem_GetEnvironmentStrings(char8* outStr, int32* inOutStrSize, BfpSystemResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int32 BfpSystem_GetNumLogicalCPUs(BfpSystemResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int64 BfpSystem_GetCPUTick();
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int64 BfpSystem_GetCPUTickFreq();
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpSystem_CreateGUID(Guid* outGuid);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpSystem_GetComputerName(char8* outStr, int32* inOutStrSize, BfpSystemResult* outResult);
|
||||
|
||||
public enum BfpFileWatcherFlags : int32
|
||||
|
@ -110,9 +110,9 @@ namespace System
|
|||
|
||||
public function void BfpDirectoryChangeFunc(BfpFileWatcher* watcher, void* userData, BfpFileChangeKind changeKind, char8* directory, char8* fileName, char8* oldName);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpFileWatcher* BfpFileWatcher_WatchDirectory(char8* path, BfpDirectoryChangeFunc callback, BfpFileWatcherFlags flags, void* userData, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFileWatcher_Release(BfpFileWatcher* fileWatcher);
|
||||
|
||||
public enum BfpProcessResult : int32
|
||||
|
@ -121,19 +121,19 @@ namespace System
|
|||
InsufficientBuffer = (int)Result.InsufficientBuffer
|
||||
}
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern bool BfpProcess_IsRemoteMachine(char8* machineName);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpProcess* BfpProcess_GetById(char8* machineName, int32 processId, BfpProcessResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpProcess_Enumerate(char8* machineName, BfpProcess** outProcesses, int32* inOutProcessesSize, BfpProcessResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpProcess_Release(BfpProcess* process);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpProcess_GetMainWindowTitle(BfpProcess* process, char8* outTitle, int32* inOutTitleSize, BfpProcessResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpProcess_GetProcessName(BfpProcess* process, char8* outName, int32* inOutNameSize, BfpProcessResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int32 BfpProcess_GetProcessId(BfpProcess* process);
|
||||
|
||||
public enum BfpSpawnFlags : int32
|
||||
|
@ -166,29 +166,29 @@ namespace System
|
|||
UnknownError = (int)Result.UnknownError
|
||||
};
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpSpawn* BfpSpawn_Create(char8* targetPath, char8* args, char8* workingDir, char8* env, BfpSpawnFlags flags, BfpSpawnResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpSpawn_Release(BfpSpawn* spawn);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpSpawn_Kill(BfpSpawn* spawn, int32 exitCode, BfpKillFlags killFlags, BfpSpawnResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern bool BfpSpawn_WaitFor(BfpSpawn* spawn, int waitMS, int* outExitCode, BfpSpawnResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpSpawn_GetStdHandles(BfpSpawn* spawn, BfpFile** outStdIn, BfpFile** outStdOut, BfpFile** outStdErr);
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int BfpProcess_GetCurrentId();
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpCritSect* BfpCritSect_Create();
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpCritSect_Release(BfpCritSect* critSect);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpCritSect_Enter(BfpCritSect* critSect);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern bool BfpCritSect_TryEnter(BfpCritSect* critSect, int32 waitMS);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpCritSect_Leave(BfpCritSect* critSect);
|
||||
|
||||
public enum BfpEventFlags : int32
|
||||
|
@ -206,15 +206,15 @@ namespace System
|
|||
BfpEventResult_NotSupported = (int)Result.NotSupported
|
||||
};
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpEvent* BfpEvent_Create(BfpEventFlags flags);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpEvent_Release(BfpEvent* event);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpEvent_Set(BfpEvent* event, bool requireManualReset);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpEvent_Reset(BfpEvent* event, BfpEventResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern bool BfpEvent_WaitFor(BfpEvent* event, int32 waitMS);
|
||||
|
||||
public enum BfpLibResult : int32
|
||||
|
@ -224,13 +224,13 @@ namespace System
|
|||
InsufficientBuffer = (int)Result.InsufficientBuffer
|
||||
};
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpDynLib* BfpDynLib_Load(char8* fileName);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpDynLib_Release(BfpDynLib* lib);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpDynLib_GetFilePath(BfpDynLib* lib, char8* outPath, int32* inOutPathSize, BfpLibResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void* BfpDynLib_GetProcAddress(BfpDynLib* lib, char8* name);
|
||||
|
||||
public enum BfpFileResult : int32
|
||||
|
@ -249,19 +249,19 @@ namespace System
|
|||
NotEmpty = (int)Result.NotEmpty
|
||||
};
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpDirectory_Create(char8* name, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpDirectory_Rename(char8* oldName, char8* newName, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpDirectory_Delete(char8* name, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpDirectory_GetCurrent(char8* outPath, int32* inOutPathSize, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpDirectory_SetCurrent(char8* path, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern bool BfpDirectory_Exists(char8* path);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpDirectory_GetSysDirectory(BfpSysDirectoryKind sysDirKind, char8* outPath, int32* inOutPathLen, BfpFileResult* outResult);
|
||||
|
||||
public enum BfpFileCreateKind : int32
|
||||
|
@ -330,45 +330,45 @@ namespace System
|
|||
In
|
||||
}
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpFile* BfpFile_Create(char8* name, BfpFileCreateKind createKind, BfpFileCreateFlags createFlags, BfpFileAttributes createdFileAttrs, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpFile* BfpFile_GetStd(BfpFileStdKind kind, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_Release(BfpFile* file);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int BfpFile_Write(BfpFile* file, void* buffer, int size, int timeoutMS, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int BfpFile_Read(BfpFile* file, void* buffer, int size, int timeoutMS, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_Flush(BfpFile* file);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int64 BfpFile_GetFileSize(BfpFile* file);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern int64 BfpFile_Seek(BfpFile* file, int64 offset, BfpFileSeekKind seekKind);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_Truncate(BfpFile* file);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpTimeStamp BfpFile_GetTime_LastWrite(char8* path);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpFileAttributes BfpFile_GetAttributes(char8* path, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_SetAttributes(char8* path, BfpFileAttributes attribs, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_Copy(char8* oldPath, char8* newPath, BfpFileCopyKind copyKind, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_Rename(char8* oldPath, char8* newPath, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_Delete(char8* path, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern bool BfpFile_Exists(char8* path);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_GetTempPath(char8* outPath, int32* inOutPathSize, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_GetTempFileName(char8* outName, int32* inOutNameSize, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_GetFullPath(char8* inPath, char8* outPath, int32* inOutPathSize, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFile_GetActualPath(char8* inPath, char8* outPath, int32* inOutPathSize, BfpFileResult* outResult);
|
||||
|
||||
public enum BfpFindFileFlags : int32
|
||||
|
@ -378,21 +378,21 @@ namespace System
|
|||
Directories = 2,
|
||||
};
|
||||
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpFindFileData* BfpFindFileData_FindFirstFile(char8* path, BfpFindFileFlags flags, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern bool BfpFindFileData_FindNextFile(BfpFindFileData* findData);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFindFileData_GetFileName(BfpFindFileData* findData, char8* outName, int32* inOutNameSize, BfpFileResult* outResult);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpTimeStamp BfpFindFileData_GetTime_LastWrite(BfpFindFileData* findData);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpTimeStamp BfpFindFileData_GetTime_Created(BfpFindFileData* findData);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpTimeStamp BfpFindFileData_GetTime_Access(BfpFindFileData* findData);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern BfpFileAttributes BfpFindFileData_GetFileAttributes(BfpFindFileData* findData);
|
||||
[StdCall, CLink]
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
public static extern void BfpFindFileData_Release(BfpFindFileData* findData);
|
||||
|
||||
public enum BfpSysDirectoryKind : int32
|
||||
|
|
|
@ -79,7 +79,7 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
[Import("ole32.lib"), CLink, StdCall]
|
||||
[Import("ole32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HResult CoCreateInstanceFromApp(ref Guid clsid, COM_IUnknown* unkOuter, ClsContext clsCtx, void* reserved, uint32 count, MULTI_QI* result);
|
||||
|
||||
struct MULTI_QI
|
||||
|
@ -89,10 +89,10 @@ namespace System
|
|||
public HResult mHR;
|
||||
}
|
||||
|
||||
[Import("ole32.lib"), CLink, StdCall]
|
||||
[Import("ole32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HResult CoCreateInstance(ref Guid clsId, COM_IUnknown* unkOuter, ClsContext clsCtx, ref Guid iid, void** result);
|
||||
|
||||
[Import("ole32.lib"), CLink, StdCall]
|
||||
[Import("ole32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern void CoTaskMemFree(void* ptr);
|
||||
}
|
||||
|
||||
|
@ -1107,19 +1107,19 @@ namespace System
|
|||
TRUSTEE_W Trustee;
|
||||
}
|
||||
|
||||
[Import("version.lib"), CLink, StdCall]
|
||||
[Import("version.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetFileVersionInfoW(char16* lptstrFilename, uint32 dwHandle, uint32 dwLen, void* lpData);
|
||||
|
||||
[Import("version.lib"), CLink, StdCall]
|
||||
[Import("version.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 GetFileVersionInfoSizeW(char16* lptstrFilename, out uint32 lpdwHandle);
|
||||
|
||||
[Import("version.lib"), CLink, StdCall]
|
||||
[Import("version.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool VerQueryValueW(void* pBlock, char16* lpSubBlock, ref void* lplpBuffer, out int32 puLen);
|
||||
|
||||
[Import("version.lib"), CLink, StdCall]
|
||||
[Import("version.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 VerLanguageNameW(uint32 wLang, char16* szLang, uint32 cchLang);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 GetNamedSecurityInfoW(
|
||||
char16* pObjectName,
|
||||
SE_OBJECT_TYPE ObjectType,
|
||||
|
@ -1131,7 +1131,7 @@ namespace System
|
|||
SECURITY_DESCRIPTOR* *ppSecurityDescriptor
|
||||
);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern void BuildExplicitAccessWithNameW(
|
||||
EXPLICIT_ACCESS_W* pExplicitAccess,
|
||||
char16* pTrusteeName,
|
||||
|
@ -1140,7 +1140,7 @@ namespace System
|
|||
uint32 Inheritance
|
||||
);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 SetEntriesInAclW(
|
||||
uint32 cCountOfExplicitEntries,
|
||||
EXPLICIT_ACCESS_W* pListOfExplicitEntries,
|
||||
|
@ -1148,7 +1148,7 @@ namespace System
|
|||
ACL** NewAcl
|
||||
);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 SetNamedSecurityInfoW(
|
||||
char16* pObjectName,
|
||||
SE_OBJECT_TYPE ObjectType,
|
||||
|
@ -1159,282 +1159,282 @@ namespace System
|
|||
ACL* pSacl
|
||||
);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern void LocalFree(void* ptr);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetTimeZoneInformation(out TimeZoneInformation dynamicTimeZoneInformation);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetDynamicTimeZoneInformation(out DynamicTimeZoneInformation dynamicTimeZoneInformation);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegOpenKeyExW(HKey hKey, char16* lpSubKey, uint32 ulOptions, uint32 samDesired, out HKey phkResult);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegOpenKeyExA(HKey hKey, char8* lpSubKey, uint32 ulOptions, uint32 samDesired, out HKey phkResult);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegCreateKeyExW(HKey hKey, char16* lpSubKey, uint32 reserved, char16* lpClass, uint32 dwOptions, uint32 samDesired,
|
||||
SecurityAttributes* lpSecurityAttributes, out HKey phkResult, uint32* lpdwDisposition);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegCreateKeyExA(HKey hKey, char8* lpSubKey, uint32 reserved, char8* lpClass, uint32 dwOptions, uint32 samDesired,
|
||||
SecurityAttributes* lpSecurityAttributes, out HKey phkResult, uint32* lpdwDisposition);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegCloseKey(HKey hKey);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegDeleteKeyW(HKey hKey, char16* lpSubKey);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegDeleteKeyA(HKey hKey, char8* lpSubKey);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegDeleteValueW(HKey hKey, char16* lpSubKey);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegDeleteValueA(HKey hKey, char8* lpSubKey);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegQueryValueExW(HKey hKey, char16* lpValueName, uint32* lpReserved, uint32* lpType, void* lpData, uint32* lpcbData);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegQueryValueExA(HKey hKey, char8* lpValueName, uint32* lpReserved, uint32* lpType, void* lpData, uint32* lpcbData);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegEnumValueW(HKey hKey, int32 dwIndex, char16* lpValueName, uint32* lpcchValueName, uint32* lpReserved, uint32* lpType, void* lpData, uint32* lpcbData);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegEnumValueA(HKey hKey, int32 dwIndex, char8* lpValueName, uint32* lpcchValueName, uint32* lpReserved, uint32* lpType, void* lpData, uint32* lpcbData);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegGetValueW(HKey hkey, char16* lpSubKey, char16* lpValue, uint32 dwFlags, uint32* pdwType, void* pvData, uint32* pcbData);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegGetValueA(HKey hkey, char8* lpSubKey, char8* lpValue, uint32 dwFlags, uint32* pdwType, void* pvData, uint32* pcbData);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegSetValueExW(HKey hkey, char16* lpValue, uint32 reserved, uint32 dwType, void* pvData, uint32 cbData);
|
||||
|
||||
[Import("advapi32.lib"), CLink, StdCall]
|
||||
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 RegSetValueExA(HKey hkey, char8* lpValue, uint32 reserved, uint32 dwType, void* pvData, uint32 cbData);
|
||||
|
||||
[Import("shell32.lib"), CLink, StdCall]
|
||||
[Import("shell32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 SHGetSpecialFolderLocation(HWnd hwnd, int32 csidl, ref int ppidl);
|
||||
|
||||
[Import("shell32.lib"), CLink, StdCall]
|
||||
[Import("shell32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern bool SHGetPathFromIDList(int pidl, char8* path);
|
||||
|
||||
[Import("shell32.lib"), CLink, StdCall]
|
||||
[Import("shell32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int SHBrowseForFolder(ref BrowseInfo bi);
|
||||
|
||||
[Import("shell32.lib"), CLink, StdCall]
|
||||
[Import("shell32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern COM_IUnknown.HResult SHCreateItemFromParsingName(char16* pszPath, COM_IBindCtx *pbc, Guid riid, void **ppv);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetLastError();
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetExitCodeProcess(ProcessHandle process, out int32 exitCode);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetExitCodeThread(Handle process, out int32 exitCode);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 ResumeThread(Handle thread);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern ProcessHandle GetCurrentProcess();
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetCurrentProcessId();
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern ProcessHandle OpenProcess(int32 desiredAccess, IntBool inheritHandle, int32 processId);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern Handle CreateRemoteThread(ProcessHandle process, SecurityAttributes* threadAttributes, int stackSize, void* startAddress, void* parameter, int32 creationFlags, int32* threadId);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool WriteProcessMemory(ProcessHandle process, void* baseAddress, void* buffer, int size, int* numberOfBytesWritten);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern void* GetProcAddress(HModule module, char8* procName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern void* VirtualAllocEx(ProcessHandle process, void* address, int size, int32 allocationType, int32 protect);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern void* VirtualFreeEx(ProcessHandle process, void* address, int size, int32 allocationType);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern FileHandle GetStdHandle(int32 stdHandle);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern Handle ShellExecuteW(Handle hwnd, char16* operation, char16* file, char16* parameters, char16* directory, int32 showCmd);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern Handle ShellExecuteA(Handle hwnd, char8* operation, char8* file, char8* parameters, char8* directory, int32 showCmd);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool ShellExecuteExA(ShellExecuteInfo* shellExecuteInfo);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern void GetStartupInfoA(StartupInfo* startupInfo);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CreateProcessW(char16* applicationName, char16* commandLine, SecurityAttributes* processAttributes, SecurityAttributes* threadAttributes,
|
||||
IntBool inheritHandles, int32 creationFlags, void* environment, char16* currentDirectory, StartupInfo* startupInfo, ProcessInformation* processInformation);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CreateProcessA(char8* applicationName, char8* commandLine, SecurityAttributes* processAttributes, SecurityAttributes* threadAttributes,
|
||||
IntBool inheritHandles, int32 creationFlags, void* environment, char8* currentDirectory, StartupInfo* startupInfo, ProcessInformation* processInformation);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool TerminateProcess(ProcessHandle process);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CreatePipe(out Handle readPipe, out Handle writePipe, SecurityAttributes* pipeAttributes, int32 size);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern Handle CreateNamedPipeA(char8* lpName, uint32 dwOpenMode, uint32 dwPipeMode, uint32 nMaxInstances, uint32 nOutBufferSize, uint32 nInBufferSize,
|
||||
uint32 nDefaultTimeOut, SecurityAttributes* lpSecurityAttributes);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool ConnectNamedPipe(Handle handle, Overlapped* overlapped);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CallNamedPipeA(char8* name, void* inBuffer, int32 inBufferSize, void* outBuffer, int32 outBufferSize, int32* bytesRead, int32 timeOut);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool DisconnectNamedPipe(Handle handle);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern EventHandle CreateEventA(SecurityAttributes* eventAttribuetes, IntBool manualReset, IntBool initialState, char8* name);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool SetEvent(EventHandle eventHandle);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool ResetEvent(EventHandle eventHandle);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 WaitForSingleObject(Handle handle, int32 milliseconds);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 WaitForMultipleObjects(int32 count, Handle* handles, IntBool waitAll, int32 milliseconds);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IOCompletionHandle CreateIoCompletionPort(FileHandle fileHandle, IOCompletionHandle existingCompletionPort, int completionKey, int32 numberOfConcurrentThreads);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetQueuedCompletionStatus(IOCompletionHandle completionPort, out int32 numberOfBytes, out int completionKey, out Overlapped* overlapped, int32 milliseconds);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool PostQueuedCompletionStatus(IOCompletionHandle completionPort, int32 numberOfBytes, int completionKey, Overlapped* overlapped);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool DuplicateHandle(Handle sourceProcessHandle, Handle sourceHandle, Handle targetProcessHandle, Handle* targetHandle, int32 desiredAccess, IntBool inheritHandle, int32 options);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CloseHandle(Handle handle);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetFileType(FileHandle handle);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetFileSize(FileHandle handle, int32* sizeHigh);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern FileHandle CreateFileA(char8* lpFileName,
|
||||
int32 dwDesiredAccess, System.IO.FileShare dwShareMode,
|
||||
SecurityAttributes* securityAttrs, System.IO.FileMode dwCreationDisposition,
|
||||
int32 dwFlagsAndAttributes, Handle hTemplateFile);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern FileHandle CreateFileW(char16* lpFileName,
|
||||
int32 dwDesiredAccess, System.IO.FileShare dwShareMode,
|
||||
SecurityAttributes* securityAttrs, System.IO.FileMode dwCreationDisposition,
|
||||
int32 dwFlagsAndAttributes, Handle hTemplateFile);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 GetWindowsDirectoryW(char16* lpBuffer, uint32 uSize);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 GetWindowsDirectoryA(char8* lpBuffer, uint32 uSize);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CreateDirectoryW(char16* pathName, SecurityAttributes* securityAttributes);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CreateDirectoryA(char8* pathName, SecurityAttributes* securityAttributes);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool RemoveDirectoryW(char16* pathName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool RemoveDirectoryA(char8* pathName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool DeleteFileW(char16* pathName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool DeleteFileA(char8* pathName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CopyFileW(char16* srcName, char16* dstName, IntBool failIfExists);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool CopyFileA(char8* srcName, char8* dstName, IntBool failIfExists);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool MoveFileW(char16* srcName, char16* dstName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool MoveFileA(char8* srcName, char8* dstName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 ReadFile(Handle handle, uint8* bytes, int32 numBytesToRead, out int32 numBytesRead, Overlapped* overlapped);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 WriteFile(Handle handle, uint8* bytes, int32 numBytesToWrite, out int32 numBytesWritten, Overlapped* overlapped);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern FindHandle FindFirstFileW(char16* fileName, ref NativeFindData findFileData);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool FindNextFileW(FindHandle findHandle, ref NativeFindData findFileData);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool FindClose(FindHandle findHandle);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetFileAttributesExW(char16* name, int32 fileInfoLevel, FileAttributeData* fileInformation);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool SetFileAttributesW(char16* name, int32 attribs);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 MessageBoxA(HWnd hWnd, char8* text, char8* caption, int32 type);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 MessageBoxW(HWnd hWnd, char16* text, char16* caption, int32 type);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 SetErrorMode(int32 errorMode);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HWnd GetActiveWindow();
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HWnd SetActiveWindow(HWnd wnd);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int CallWindowProcA(int wndProc, HWnd hWnd, int32 msg, int wParam, int lParam);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int CallWindowProcW(int wndProc, HWnd hWnd, int32 msg, int wParam, int lParam);
|
||||
|
||||
public static int GetWindowLong(HWnd hWnd, int32 nIndex)
|
||||
|
@ -1450,10 +1450,10 @@ namespace System
|
|||
}
|
||||
|
||||
#if BF32
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int GetWindowLongA(int hWnd, int nIndex);
|
||||
#else
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int GetWindowLongPtrW(int hWnd, int32 nIndex);
|
||||
#endif
|
||||
|
||||
|
@ -1467,118 +1467,118 @@ namespace System
|
|||
}
|
||||
|
||||
#if BF32
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int SetWindowLongA(int hWnd, int nIndex, int value);
|
||||
#else
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int SetWindowLongPtrW(int hWnd, int32 nIndex, int value);
|
||||
#endif
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool PostMessageW(HWnd hWnd, int32 msg, int wParam, int lParam);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 SendMessageW(HWnd hWnd, int32 msg, int wParam, int lParam);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 SendMessageTimeoutW(HWnd hWnd, int32 msg, int wParam, int lParam, int32 flags, int32 timeout, int32* result);
|
||||
|
||||
[Import("user32.lib "), CLink, StdCall]
|
||||
[Import("user32.lib "), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HWnd SetFocus(HWnd hWnd);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool EnumWindows(void* callback, void* extraData);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HWnd GetWindow(HWnd hWnd, int32 uCmd);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HWnd FindWindowW(char16* className, char16* windowName);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HWnd FindWindowA(char8* className, char8* windowName);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool IsWindowVisible(HWnd hWnd);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetWindowTextLengthW(HWnd hWnd);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetWindowTextW(HWnd hWnd, char16* ptr, int32 length);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetWindowTextA(HWnd hWnd, char8* ptr, int32 length);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 GetWindowThreadProcessId(HWnd handle, out int32 processId);
|
||||
|
||||
[Import("comdlg32.lib"), CLink, StdCall]
|
||||
[Import("comdlg32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetOpenFileNameW(ref OpenFileName ofn);
|
||||
|
||||
[Import("comdlg32.lib"), CLink, StdCall]
|
||||
[Import("comdlg32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetSaveFileNameW(ref OpenFileName ofn);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HModule GetModuleHandleW(char16* modName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HModule GetModuleHandleA(char8* modName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 GetTempFileNameW(char16* tmpPath, char16* prefix, uint32 uniqueIdOrZero, char16* tmpFileName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 GetTempFileNameA(char8* tmpPath, char8* prefix, uint32 uniqueIdOrZero, char8* tmpFileName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern uint32 GetTempPathW(int32 bufferLen, char16* buffer);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetComputerNameA(char8* buffer, ref int32 size);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 NtQuerySystemInformation(int32 query, void* dataPtr, int32 size, out int32 returnedSize);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool ReadDirectoryChangesW(FileHandle handle, uint8* buffer, int32 bufferLength, IntBool watchSubtree, NotifyFilters notifyFilter,
|
||||
out int32 bytesReturned, Overlapped* overlapped, void* completionRoutine);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 SetFilePointer(FileHandle handle, int32 distanceToMove, int32* distanceToMoveHigh, int32 moveMethod);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool SHGetFileInfoW(char16* pszPath, uint32 fileAttributes, SHFileInfo* psfi, uint32 cbFileInfo, uint32 flags);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern char16* GetEnvironmentStringsW();
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern void FreeEnvironmentStringsW(char16* ptr);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool GetFileMUIPath(uint32 dwFlags, char16* pcwszFilePath, char16* pwszLanguage, uint32* pcchLanguage,
|
||||
char16* pwszFileMUIPath, uint32* pcchFileMUIPath, uint64* pululEnumerator);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool SetDllDirectoryW(char16* libFileName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HInstance LoadLibraryW(char16* libFileName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HInstance LoadLibraryA(char8* libFileName);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HInstance LoadLibraryExW(char16* libFileName, HModule hFile, uint32 dwFlags);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern HInstance LoadLibraryExA(char8* libFileName, HModule hFile, uint32 dwFlags);
|
||||
|
||||
[CLink, StdCall]
|
||||
[CLink, CallingConvention(.Stdcall)]
|
||||
public static extern IntBool FreeLibrary(HModule module);
|
||||
|
||||
[Import("user32.lib"), CLink, StdCall]
|
||||
[Import("user32.lib"), CLink, CallingConvention(.Stdcall)]
|
||||
public static extern int32 LoadStringW(HInstance hInstance, uint32 uID, char16* lpBuffer, int32 cchBufferMax);
|
||||
|
||||
public static Result<FileHandle, FileOpenError> SafeCreateFile(String lpFileName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue