News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

#include <sapi.h>

Started by loki_dre, January 14, 2009, 06:17:22 PM

Previous topic - Next topic

loki_dre

How do I incorporate the following C++ code into MASM:

#include <sapi.h>

Farabi

Quote from: loki_dre on January 14, 2009, 06:17:22 PM
How do I incorporate the following C++ code into MASM:

#include <sapi.h>


You cannot use C++ header on MASM. You need to tranlate the header into MASM header format. The extention for MASM header format is, .inc.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Vortex

Hi loki_dre,

You can use Japheth's h2incx tool to convert C header files to Masm include files.

askm


Its up to you loki, if not with others help.
You copyright your work as others have. Be advised. This seems busy.

  ; ===========================================
  ; sapi.inc copyright loki 2009
  ; ===========================================

IFNDEF SAPI_INC
SAPI_INC equ <1>

SetDword PROTO :DWORD, :DWORD

ELSE
echo -----------------------------------------
echo WARNING Duplicate include file sapi.inc
echo -----------------------------------------
ENDIF


But generally speaking ranchers, is there any need to pack an include file with functions you are not calling ?

donkey

#4
Quote from: askm on January 15, 2009, 06:13:25 PM

Its up to you loki, if not with others help.
You copyright your work as others have. Be advised. This seems busy.

  ; ===========================================
  ; sapi.inc copyright loki 2009
  ; ===========================================

IFNDEF SAPI_INC
SAPI_INC equ <1>

SetDword PROTO :DWORD, :DWORD

ELSE
echo -----------------------------------------
echo WARNING Duplicate include file sapi.inc
echo -----------------------------------------
ENDIF


But generally speaking ranchers, is there any need to pack an include file with functions you are not calling ?

What would be copyright here ??? It is a derivative work and include files contain almost no copyrightable material contributed by the author under title 17. The addition of a copyright notice may actually infringe on Microsoft's copyrights (the original author) and open you to lawsuits. When I began my header project I was concerned about this and consulted a lawyer friend, she said it is much safer not to include any copyright notice in the headers. The copyright loki has attached is valueless and could be an infringement in itself as it may be viewed as an attempt to nullify Microsoft's rights since he does not include the original authors copyright notice.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

askm

The posts I have made are to further the goal
of conversion of sapi.h to sapi.inc, or any
include so required.

Re:
"The copyright loki has attached is valueless
and could be an infringement in itself as it
may be viewed as an attempt to nullify
Microsoft's rights since he does not include
the original authors copyright notice."

First, loki did not attach this. This was an
attempt by meto visualize how sapi.inc would look
had it been completed by loki, who may attempt
constructing it for his purposes, and may see the
light of our day. It could well have been

  ; ===========================================
  ; sapi.inc copyright buckwheat32 2009
  ; ===========================================

If a proper notice be legally required, add it,
but a person has a right and sometimes
a duty to protect his or her literary and or artistic hard works.
Please tell the forum where there is Microsoft notice
relevance in these next three examples, that is if you have
the legal standing to do so.

Example 1:
  ; ===========================================
  ; apidll.inc copyright MASM32 1998 - 2005
  ; ===========================================

Example 2:
TITLE  Link Library Functions      (Irvine16.asm)

Comment @

This library was created exlusively for use with the book,
"Assembly Language for Intel-Based Computers, 4th Edition",
by Kip R. Irvine, 2002.

Copyright 2002, Prentice-Hall Incorporated. No part of this file may be
reproduced, in any form or by any other means, without permission in writing
from the publisher.

Example 3:
.NOLIST
COMMENT !
; (Macros.inc) - Include file containing Macros
; for Assembly Language for Intel-Based Computers
; 4th Edition, by Kip Irvine. Copyright 2002, Prentice-Hall Inc,
; all rights reserved.
;

To copyright or copyleft is a subject for another topic.
I assume otherwise that the pursuit of sapi.inc remains
active.


donkey

Quote from: askm on January 16, 2009, 04:35:13 AM
The posts I have made are to further the goal
of conversion of sapi.h to sapi.inc, or any
include so required.

Re:
"The copyright loki has attached is valueless
and could be an infringement in itself as it
may be viewed as an attempt to nullify
Microsoft's rights since he does not include
the original authors copyright notice."

First, loki did not attach this. This was an
attempt by meto visualize how sapi.inc would look
had it been completed by loki, who may attempt
constructing it for his purposes, and may see the
light of our day. It could well have been

Ah, so you took it upon yourself to post a questionable copyright notice on a public forum for him, OK.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

japheth


> Ah, so you took it upon yourself to post a questionable copyright notice on a public forum for him, OK.

Why not? The MASM32 project is full of such "questionable" copyrights. See WINDOWS.INC and KERNEL32.INC for example. It doesn't really matter. There's no real danger of a lawsuit because the "damage" is virtually zero.




ToutEnMasm

Hello,
sapi.h is part of the windows sdk 6.1.I am translating it.
Here is sapi.sdk.Include it in the translated sdk or delet the if statement
No copyright in it.

[attachment deleted by admin]

NightWare

Quote from: japheth on January 16, 2009, 05:34:20 AM
Why not? The MASM32 project is full of such "questionable" copyrights. See WINDOWS.INC and KERNEL32.INC for example. It doesn't really matter. There's no real danger of a lawsuit because the "damage" is virtually zero.
hmm..., no one can put a copyright on an equivalence, or a value... however, ordered "values" are assimilated as formats... and it's the case for structures !!!  :wink