The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: loki_dre on January 14, 2009, 06:17:22 PM

Title: #include <sapi.h>
Post by: loki_dre on January 14, 2009, 06:17:22 PM
How do I incorporate the following C++ code into MASM:

#include <sapi.h>
Title: Re: #include <sapi.h>
Post by: Farabi on January 15, 2009, 04:01:35 PM
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.
Title: Re: #include <sapi.h>
Post by: Vortex on January 15, 2009, 05:53:45 PM
Hi loki_dre,

You can use Japheth's h2incx tool (http://www.japheth.de/h2incX.html) to convert C header files to Masm include files.
Title: Re: #include <sapi.h>
Post by: 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 ?
Title: Re: #include <sapi.h>
Post by: donkey on January 16, 2009, 01:31:17 AM
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.
Title: Re: #include <sapi.h>
Post by: 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

  ; ===========================================
  ; 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.

Title: Re: #include <sapi.h>
Post by: donkey on January 16, 2009, 05:07:29 AM
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.
Title: Re: #include <sapi.h>
Post by: japheth on January 16, 2009, 05:34:20 AM

> 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.



Title: Re: #include <sapi.h>
Post by: ToutEnMasm on January 16, 2009, 08:08:29 AM
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]
Title: Re: #include <sapi.h>
Post by: NightWare on January 19, 2009, 03:13:09 AM
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