Coder Social home page Coder Social logo

gmh5225 / wininc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from baron-von-riedesel/wininc

0.0 1.0 0.0 1.55 MB

Windows 32/64-bit Include files and Import Libraries

C++ 74.14% C 0.52% Assembly 23.52% Pascal 0.05% Pawn 0.19% Makefile 0.02% HTML 0.27% Batchfile 0.06% POV-Ray SDL 0.05% NASL 1.19%

wininc's Introduction

 A. About WinInc

   WinInc is a set of assembly include files in Masm-syntax intended to
   simplify writing assembly code for Windows ( 32- and 64-bit ). It can
   be used for applications and dlls written entirely in assembly and
   also for the assembly portions of mixed-language projects.

   WinInc also includes module definition files to create Win32 and
   Win64 import libraries. Usage is optional, one may as well use the
   libraries supplied by the MS Platform SDK.

   Some samples in the SAMPLES directory illustrate how to use WinInc.


 B. Requirements

   a) Win32

   Assemblers which are able to digest the WinInc include files are
   Masm, JWasm, Uasm and AsmC.

   b) Win64

   For Win64 development, the set of tools is smaller, because
   MS Masm64 won't work - it has severe limitations.


 C. Installation

   When creating binaries for Windows the link step will require import
   libraries to resolve the references to the Windows API. One may just use
   the libraries included in the MS PSDK, then the following steps can be
   skipped.

   a) Create Standard Windows Import Libs

   The standard Windows libraries are so-called import libraries. Import
   libraries contain just references to the dlls where the functions are
   to be found. Several tools can create those libraries from simple text files.
   What's used here are 2 programs:
   
    - def2jwt: the source is in Tools; It's supposed to be assembled with
      jwasm, using Tools\def2jwt.bat.
    - JWLib: the binary is part of the jwlink package.

   After both programs are available, the import libraries may be generated:

   For Win32, run MAKELIBS.BAT in directory DEF.
   For Win64, run MAKELIBS.BAT in directory DEF64.

   b) Create UUID.LIB

   Regretably not all Windows libraries are just import libraries which can 
   be created by MS LIB. Some contain static code. One of those - which is
   crucial for COM - is UUID.LIB. The file UUID.LIB contained in Lib subdir
   is not a fully functional version of this lib. It is created by tool
   UUID\mkguids.exe and contains just the very minimum of GUIDs. If you need
   additional GUIDs in your binary, either get a version of UUID.LIB from
   other sources (PSDK for example) or add the missing GUIDS to file
   UUID\uuid and rerun UUID\makeuuid.bat.


 D. License

  All files contained in WinInc are Public Domain. The 'copyright'
  string in the include files refers to tool h2incx, not to the 
  include files themselves.

  Japheth

wininc's People

Contributors

baron-von-riedesel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.