Note: Descriptions are shown in the official language in which they were submitted.
CA 02271012 1999-OS-OS
WO 98/24037 PCT/IT597/20929
METHOD OF SECURE SERVER CONTROL OE' LOCAL MEDIA
VIA A TRIGGER THROUGH A NETWORP: FOR INSTANT LOCAL ACCESS
OF ENCRYPTED DATA CrN LOCAL MEDIA
A portion of the disclosure of this patent document
contains material which is subject to copyright protection.
The copyright owner has no objection to facsimile reproduc-
tion by anyone of the patent document or the patent disclo-
sure, as it appears in the Patent & Trademark Office patent
file or records, but otherwise reserves a11 copyright rights
whatsoever.
BACKGROUND OF THE INVENTION
The present invention is directed to a method of trans-
mitting "triggering data" over a network to cause video
and/or audio information data on a CD-ROM at an end-user's
computer to be made readable. In addition, the CD-ROM com-
prises program files for automatically dialing and connecting
the end-user's computer to a targeted host's server using an
operating system such as "Windows 95". The CD-ROM will only
allow the end-user access to the video/and or audio on it by
logging onto the host's server via a network such as the
Internet.
The Internet is a conglomeration of computer networks
that are linked together. Each network of the Internet may
have one or more servers, and an operating system that may be
different from that of others in the Internet. To link one
i
CA 02271012 1999-OS-OS
WO 98I24037 PCT/IJS97/20929
2
network to another, and in order to overcome these operating
differences between computer networks, the Internet system
utilizes hardware and software devices called: bridges,
routers, and gateways, a11 of which adapt the information
being sent on one network to the operating and protocol
requirements of the receiving network. For example, a gateway
will connect, or "splice" a network operating on the Novell
protocol to a network that operates on a DECnet or SNA proto-
CO1.
There are currently more than 10,000 computer networks
that are linked together, worldwide, which together consti-
tute the "Internet". Because they do not a11 operate on the
same operating system, and because of different protocols,
the data sent from one host computer of one network to a
receiving computer of another network - which may be many
thousands of miles away from the host computer - may take a
relatively long time, since the gateways, bridges and routers
must conform or adapt the protocol of the sending host com-
puter to the receiving computer's protocol.
In addition to the time-delays associated with protocol
variances, the Internet when connecting to an end-user via
Plain 01d Telephone Service (POTS), has a maximum data-trans-
mission capacity of 3.6 kbytes per second, which is not
enough for sending video images in real time.
The Internet system utilizes two types of file-transfer
protocols (FTP) for copying a file from a host computer to
the receiving computer: ASCII and binary. An ASCII file is a
text file, while every other kind of file is binary. ASCII
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
3
files are transmitted in seven--digit ASCII codes, while the
binary files are transmitted in binary code. Because all data
stored in computer memory is stored in binary format, when
one sends a file in the Tnternea, it is sent in binary for-
mat. However, as discussed above, owing to the data-transmis-
sion constraints imposed by the' Internet system because of
the differing operating systems, and a multitude of gateways,
routers, and bridges, the fi7-a data must be sent out in
packets of a size no greater than 1536 bytes. Since the size
of just a thirty-second video may be as great as 2.5 mega-
bytes, it may take up to one-half hour or more to send a
thirty-second video over the Internet from a host computer to
a receiving computer. Presently, there are compression tech-
niques that compress the files i.n order to reduce this play-
back-time, which data is decompressed at the receiving com-
puter. An example of such a sy~:tem is VDOLive, manufactured
by VDOnet Corp. of Santa Clara, California. However, these
compression-systems still send. the data in binary format,
requiring packet-data sizes of no greater than 1536 bytes.
Thus, even with these compression-systems, the length of time
to receive a thirty-second video over the Internet after
being buffered in the user's computer is near real time, but
is unstable, choppy and drops as much as 96% of the video
data over a conventional phone line.
In the Internet, there is an electronic-mail delivery
system called E-mail. The E-mail system utilizes addresses to
direct a message to the recipient, with each address having a
mailbox code and a daemon, with the mail box and daemon being
i i '
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
4
separated by the symbol @. In the E-mail delivery system, all
of the messages or "mail" are routed through selected routers
and gateways, until it reaches what may be called a "post
office" that services the recipient to whom the electronic
mail is to be delivered. The "post office" is a local server.
The need for these local "post offices" is because there is
every reason to assume that the recipient-computer, to which
the mail is being sent, is either not powered up, or is
performing a different task. Since most computers in the
Internet are not multi-tasking machines, such as, for exam-
ple, computers running on the DOS operating system, if such a
computer be engaged in performing a task, it is not possible
for it to receive the E-mail data at that time. Thus, the
local "post office" or server stores the message until such a
time as it may be delivered to the end-user to whom it is
intended.
In the E-mail system, there has really been only one
format standard for Internet messages. A variation has been
the MIME version, which stands for Multipurpose Internet Mail
Extensions, which defines a new header-field, which is in-
tended for use to send non-text messages, such as multimedia
messages that might include audio or images, by encoding the
binary into seven-digit ASCII code. Before MIME, the limita-
tion of E-mail systems was the fact that it would limit the
contents of electronic mail messages to relatively short
lines of seven-bit ASCII. This has forced users to convert
any non-textual data that they may wish to send into seven-
bit bytes representable as printable ASCII characters before
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
invoking a local mail UA (User Agent, a program with which
human users send and receive mail). Examples of such encod-
ings currently used in the Internet include pure hexadecimal,
uuencoded, the 3-in-4 base 64 acheme specified in RFC 1421,
the Andrew Toolkit Representa~~ion [ATK], and many others.
Even though a user's UA may not have the capability of deal-
ing with the non-textual body pert, the user might have some
mechanism external to the UA that can extract useful informa-
tion from the body part. MoreovE~r, it does not allow for the
fact that the message may eveni~ually be gatewayed back into
an X.400 message handling system (i.e., the X.400 message is
"tunneled" through Internet mail), where the non-textual
information would definitely become useful again. With MIME,
video and/or audio data may be :sent using the E-mail system.
MIME uses a number of header-fields, such as "Content-Type"
header field) which can be u.aed to specify the type and
subtype of data in the body of ~~ message and to fully specify
the native representation (enc:oding) of such data; "text"
Content-Type value header field, which an be used to repre-
sent textual information in a number of character sets and
formatted text description languages in a standardized man-
ner; "multi-part" Content-Type value, which can be used to
combine several body parts, possibly of differing types of
data, into a single message; "application" Content-Type
. value, which an be used to transmit application data or
binary data, and hence, among other users) to implement an
electronic mail file transfer service; "message" Content-Type
value, for encapsulating another mail message; "image" Cont-
CA 02271012 1999-OS-OS
WO 98l24037 PCT/~JS97/20929
6
ent-Type value, for transmitting still image (picture) data;
"audio" Content-Type value, for transmitting audio or voice
data; "video" Content-Type value, for transmitting video or
moving image data, possibly with audio as part of the com-
posite video data format; "Content-Transfer-Encoding" header
field, which can be used to specify an auxiliary encoding
that was applied to the data in order to allow it to pass
through mail transport mechanisms which may have data or
character set limitations. Two additional header fields may
be used to further describe the data in a message body: The
"Content-ID" and "Content Description" header fields.
However, there are considerable drawbacks and deficien-
cies in transmitting video images and/or audio data over the
Internet using E-mail's MIME. Firstly, there is often consid-
erable time delays, such that it may take up to ten or more
minutes to send a thirty-second video clip over the E-mail
system. In times of high-traffic usage, the delay may even be
more than ten minutes. Secondly, the video image or audio
data cannot be viewed or listened to by the end-user, or
recipient, until a11 of the data of the entire video or audio
file has been received by the receiving computer, which,
also, adds a considerable time lag to the actual viewing or
listening. Thirdly, the end-user or recipient computer must
have the necessary E-mail and MIME software for decoding the
data. Fourthly, since MIME is an E-mail protocol system, the
data is transmitted via the E-mail system, meaning that it is
routed through one or more post offices and servers, which
delay the transmission of the data, and which require that no
CA 02271012 1999-OS-OS
WO 98I24037 PCTIUS97/20929
7
other task be performed by the receiving computer if it is a
single-tasking machine, like DOS-operating system machines.
Fifthly, like a11 E-mail deliveries, the requisite E-mail
software at the recipient computer must decode the encoded
data received, and then cut-and-paste the data into a new
file, such as NOTEPAD, which is time-consuming, before the
new file is played back by a viewer or player.
While CD-ROMs provide a great amount of data storage, a
new disc called DVD-ROM (digital video disk) provides consid-
erably more data storage, reaching data storage capacities of
up to 17 GB as compared to 680 IMGB for a CD-ROM. This DVD-
disc has especial usefulness in the storage of archiving data
and in the storage of video data, such as full-length
movies. Conventional CD-ROMS do not provide enough storage
capacity for full-length movies, and the like. In conjunction
with the DVD-ROM disc, is a new envisioned technology called
"Zoom-TV", which will prevent 'the playback of the DVD-ROM
without first obtaining permission form a service-provider.
This service-provider will send the necessary enabling data
to the system playing the DVD-ROM for allowing the data on
the DVD-ROM to be played back, for which the user of the DVD-
ROM will be billed, whereby a pa,~r-per-view type of system is
effected. The user's system for playing the DVD-ROM will call
the service-provider via the land-line telephone network,
over which the necessary enabling data for playing the DVD-
ROM is also transmitted to the user's or requesting system.
The pay-per-view DVD system wi:Ll typically include a DVD-
player, which includes a video p:Layer such as MPEG-2, a TV or
i i '
CA 02271012 1999-OS-OS
WO 98/24037 PCT/L1S97/20929
8
monitor, and a microprocessor or personal computer. The user
will request permission to playback the video on the DVD-ROM
by calling up the service provider via the public, switched
telephone network, or PSTN.
DVD-ROMs containing full-length movies presently are
provided with parental rating controls, which a three-tier
format: To wit, a "Kids' Title" playback only, a "Forbid
Adult Titles" mode, and a "Play All Titles" mode. Each title
of a DVD-ROM is accorded one of a first, general category
allowing playback by any of the three modes, a second "Kids"
category for playback only in the "Kids' Title" playback mode
and which prevents all other titles including adult titles,
and a third "Forbid-Adult" category for which only adult
titles are prevented from being played but a11 other titles
may be played. For purposes of this application, the first
general category, allowing complete playback of a11 titles,
is assigned the equivalent code of "1" in its heading, while
the second Kids' titles only playback mode is assigned a code
of "2", and the third "Forbid-Adult" category for which only
adult titles are prevented from being played having a code of
"3" in its header. The DVD player, such as MPEG-2, has corre-
sponding software for detecting the category codes, and
software for setting the level of playback, whether it be the
first, second or third mode.
In addition to parental control codes, each DVD-ROM also
has a country code, with the code representing the country of
manufacture of the DVD-ROM. In conjunction with this, each
DVD-player has a country code, with the DVD-player's software
CA 02271012 1999-05-OS
WO 98l24037 PCT/US97/20929
9
preventing play of the DVD-ROP~I if the country code on the
DVD-ROM does not match the country code of the DVD-player.
This system is intended to pre~rent the illegal copying and
pirating of the videos on the DVD-ROM.
Cable-TV networks are well-known. These systems utilize
a set-top box converter for receiving the signals from the
cable-TV provider and playing them back on the TV or monitor.
Cable-TV networks also now have: units that allow access to
the Internet via the cable network, with such units having
their own microprocessor for allowing communication with the
Internet and for the display of Internet data on the TV or
monitor.
SUMMARY OF TH~~ INVENTION
It is the primary objective of the present invention to
separate keys and data by providing a CD-ROM having its
informational data of video and/or audio that is crippled,
which data may only be read after it has been "uncrippled" by
receiving "uncrippling" triggering data over the Internet
from a server of a host system, so that a company's host
computer serving the Internet may transmit the "uncrippling"
data over the Internet to an end-user's receiving computer in
order to uncripple and, thereby, actuate the CD-ROM, so that
the data thereon may be read by the end-user's receiving
' computer only in volatile memory such as RAM.
It is another objective of the present invention to
enable server control of the lo~~al media data by providing
such a "crippled" CD-ROM with video and/or audio data there-
on, whereby content by a comp~~.ny on the Internet may be
i ~ '
CA 02271012 1999-OS-OS
WO 98I24037 PCTJUS97I20929
better controlled, and whereby in conjunction with the cont-
ent, video and/or audio playback may be combined with any
updated, textual information, such as current price of a
product or products, location of a store or stores in the
vicinity of the end-user's residence, etc. Specific tracks
on the CD-ROM can thereby be controlled by the remote server.
It is another objective of the present invention to
provide such a "crippled" CD-ROM with video and/or audio data
thereon, whereby the CD-ROM is inherently provided with
Internet start-up and connecting program that automatically
and directly connects the end-user's computer to the com-
pany's or content provider's host server via the Internet,
whereby, not only does such facilitate and encourage the
connection of the end-user to the content provider's web
page, but also provides the content provider with valuable
marketing information, such as the physical location of the
caller, whereby selected information unique to that caller
may be downloaded to him over the Internet, such as name and
addresses of stores of the company or advertiser nearest to
the caller, etc.
It is another objective of the present invention to
provide such video imaging, with or without audio, such that
the use of the E-mail system or the Internet system itself
is entirely obviated.
It is another objective of the present invention to
provide such video imaging, with or without audio, such that
the data representing the video and/or audio is accessed off
the end-user's CD-ROM, with the transmitted de-crippling
CA 02271012 1999-OS-OS
WO 98/24037 PCT1US97/20929
11
triggering data from the content: provider's host server (URL)
being a trigger as small as a fe:w bytes.
It is another objective of the present invention to
allow by server permission only) the end-user the ability to
store said trigger on non-volatile media for permanent owner-
ship of said data.
It is also an objective of: the invention to provide a
software program in the end-usez~ computer called a "catcher"
for catching the trigger data such as the file header, decod-
ing it, and playing the file header data substantially "on
the fly", so that the video and/or audio data on the CD-ROM
may be played back on the end-user's computer substantially
immediately after having received the trigger data.
It is also an objective af; the invention to store both
the video files and the video player for playing the video
files in encrypted form at the: Web site associated with a
server of the Internet or Intranet, which encrypted video
files and video player are downloaded to a requesting comput-
er having the software decryption keys for the encrypted
video files and player, whereby the video files are protected
from unauthorized playback.
It is also the primary objective of the present inven-
tion to provide a method and system for implementing the pay-
per-view DVD-ROM system, whereby the enabling data provided
to the DVD-player allowing the playback of the DVD-ROM
(Hyper-DVD) video data is provided to the DVD-player via the
Internet or via the cable-TV system provider.
It is also the primary objective of the present inven-
i i '
CA 02271012 1999-OS-OS
WO 98I24037 PCTIUS97/20929
12
tion to provide a method and system for playing back DVD-ROMs
which system discriminates between DVD-ROM's requiring pay-
per-view play, and those that are free and do not require
pay-per-view play.
It is also the primary objective of the present inven-
tion to provide a method and system for playing back DVD-ROMs
which system discriminates between DVD-ROM's requiring pay-
per-view play, and those that do not, by the use of a special
code for the header of the DVD-ROM indicating a pay-per-view
title.
Toward these and other ends, the method of the invention
for transmitting the de-crippling triggering data for video
and/or audio off a CD-ROM ("HyperCD") over the Internet
consists of encoding the data representing critical informa-
tion of the file keys such as the header of the video/audio
files on the CD-ROM, and transmitting that encoded key to the
local server of the local web of the Internet serving the
caller, or end-user computer. The local server then estab-
lishes a point-to-point socket-connection between the trans-
mitting, host computer, and the receiving or end-user comput-
er, thereby obviating the need to send the actual video data
over the Internet. When the encoded key is received by the
receiving, or end-user, computer, the data is decoded and
matched to the video/audio files of the CD-ROM, whereupon,
since the data files on the CD-ROM now have an associated and
complete header, the data thereof may be read, to thus allow
the instant playback of the video-audio data on the CD-ROM.
Since the encoded header data that is sent over the
CA 02271012 1999-OS-OS
WO 98I24037 PCTlUS97/20929
13
Internet is a necessity before the end-user may playback the
video/audio data from the CD-ROM, the host computer may send
along with the encoded data, additional information pertinent
to the information contained on the CD-ROM, such as current
prices, special offers or deals, locations of local stores or
dealers, or any information that the host computer, content
provider, would like the end-user to receive.
In order to encourage the end-user to view the
video/audio, the CD-ROM is provided with its own Internet
dial-up program files for conne~~ting to the host web server,
so that very little time and ef:Eort is required on the part
of the end-user.
BRIEF DESCRIPTION OF THE DRAWINGS
The invention will be more readily understood with
reference to the accompanying dr<~wings, wherein:
Figure 1 is a pictorial representations of the hardware
systems and software processes used for carrying out the
present invention;
Figure 2 is a block diagram showing the hardware of the
end-user's computer used for carrying out the present inven-
tion;
Figure 3 is a flow chart at: a user's computer for ac-
cessing the trigger-data from a web-site;
Figure 4 is a flow chart for the server associated with
the Internet for evaluating the. trigger-request from the
user's computer and for sending the trigger;
Figure 5 is a block diagram showing the socket-to-socket
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
14
connection for transmitting the de-crippling, triggering key
for causing the display of the video images and/or audio data
of a "HyperCD" at the end-user's PC over the Internet from a
host computer combined with a targeted URL to a recipient or
end-user's computer;
Figure 6 is a block diagram showing the steps for form-
ing on the CD-ROM the encoded video and audio data for use by
the end-user recipient computer after having been crippled by
removing the header-triggering key sent from the media files;
Figure 7 is a block diagram showing the process of
triggering in order to invoke "HyperCD" video and/or audio
data at the receiving computer for playback;
Figure 8 is a pictorial representation of the hardware
component and software processing involved;
Figure 9 is a flow chart showing the server-side of the
Internet with the encrypted files thereat;
Figure 10 is a flow chart showing the "catcher" program
of the invention at the ens-user's computer for playing back
the receiving data immediately;
Figure 11 is a block diagram of the catcher-program
process;
Figure 12 is a block diagram of a modification of the
invention where instead of using a CD-ROM, the video and/or
other information is downloaded via the Internet from a Web
page, which video and/or other information is encrypted with
a key, with the user's computer storing the corresponding
decryption key therefor; and
Figure 13 is a block diagram of the DVD-ROM player
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97120929
system of the invention allowing both pay-per-view DVD-ROM
play and conventional, non-pay-~~er-view DVD-ROM play.
DETAILED DESCRIPTIONf OF THE INVENTION
Referring now to the drawings in greater detail, and to
Figures 1 and 2 for now, the hardware used to carry out the
present invention is shown. A11 of the hardware is conven-
tional and well-known, and includes an end-user computer 1
having a CD-ROM drive 2 for playing a CD-ROM 3 having stored
thereon crippled data 4 that is unreadable without first
having received a trigger or u.ncrippling key 5. The end-
user's computer 1 is connected via the Internet 6 to a host-
computer server 7 which has stored thereat the uncrippling or
triggering key 5 for the information stored on the end-user's
CD-ROM 3. The end-user's computer 1 has a display and a CPU 9
and a communication-device, such as a modem 10 for estab-
lishing communication with the Internet 6. The computer 1
also has the CD-ROM drive 2, hard-drive 11, RAM 13, and video
system 8 including monitor as well as audio system 13.
Referring to Fig. 3, there is shown the flow charts for
receiving the uncrippling key. The end-user first submits a
request over the Internet for th.e uncrippling key (block 60).
The user then waits for that key (block 62), and if the user
is not authorized, the request is denied. If the request is
authorized, then the uncrippling key is sent by the server
and received by the end-user's computer (block 64), whereupon
the end-user's computer directs the uncrippling key into
volatile memory such as RAM, not into a RAM-disk to be vis-
i i '
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97J20929
16
ible, but saved in a dynamically allocated data structure in
RAM accessible only by the receiving program, combined with
crippled data read from the CD-ROM and displays the
video/animation (block 68).
Figure 4 shows the process-flow that at the server side.
The server conventionally provides the web pages to the
Internet users (block 70), and awaits a user-request (block
72). If a request is received from an end-user's computer,
the server evaluates the request (block 74) in order to
authorize the transfer of the uncrippling key (block 76). If
an authorization is granted, then the uncrippling, trigger
key is sent (block 78).
Referring now to Figs. 5-7, video images and/or audio
axe converted from analog to digital and stored in crippled
fashion in digitized format (block 10) on CD-ROM 3. The
crippling of the CD-ROM is achieved by removing critical
information such as the video-audio header, whereupon such
video/audio data is rendered unreadable by the end-user's
computer. The "AyperCD" 3 is provided with the URL (web page)
of the designated host computer, or server, (block 14), such,
as for example: http://tekweb.com/hypercd/adver/lotto.html,
which may be used on the CD-ROM for the Illinois Instant
Lottery video advertising. Such digitized format may be
existing computer memory files (block 12) that are already in
binary format, or may be original files originated by record-
ing the video and/or audio, as by a camcorder or tape, etc.,
and converting the analog signals into digital, or binary,
code. In the case of originating files, the analog data may
CA 02271012 1999-OS-OS
WO 98I24037 PCTJUS97/20929
1.
be converted to digital data 'using an INTEL "Smart Video
Reorder Pro", for example. The .raw binary data that is stored
on the "HyperCD" (block 16) is crippled, so the only way to
access the data is a socket-to-socket connection with the
server of the web page of the host. By means of the process
performed in block 14, the CD-ROM contains a code represent-
ing the URL web page of the hosi~ computer where the necessary
de-crippling key is located. T1-tis data on the CD-ROM 3 will
automatically call up and connect the end-user's computer to
the host computer's server 7 on the Internet, whereby a
socket-to-socket connection is rnade therebetween (block 18).
Such an automatic connection is well-known, and will automat-
ically find the end-user's browser, will call the Internet
service provider, and pass the necessary links from the CD-
ROM to the browser in order to get to the host's web page.
Such software is available on the "Windows 95" operating
system, such as "ActiveX". The Host computer then sends back
to the local server serving t:he end-user's computer the
necessary, uncrippling trigger for the specific video/audio
data on the end-user's CD-ROM (block 2D). From the local
server, the data is sent out directly over the Internet to
the end-user, and, in particular, to the RAM 12 of the end-
user's computer (block 22). In RAM, the trigger (block 22),
and the data on the CD-ROM 3 are combined, and played back
(block 24), as described above. However, as will be explained
hereinbelow, since the key 5 is being sent via Internet 6,
the end-user's computer 7 must be equipped with the requisite
software which is capable of receiving data from the server 7
i ~ '
CA 02271012 1999-05-OS
WO 98l24037 PCT/US97/20929
18
and which will ensure that the received encoded key 5 is
placed safely in RAM 12, and not allowed to be otherwise
saved in hard drive 11 where it may be captured and used in a
way not authorized by the server 7.
Referring to Figure 6, at the end-user computer end, the
raw analog data of the audio/video is digitized (block 30),
as explained above, and stored on CD-ROM 3 by conventional
techniques. During the storage of the data on the key or
critical information of the media file such as video-audio
header associated with the video/audio files will be omitted
from storage on the CD-ROM, whereupon the CD-ROM is crippled,
or prevented from being read for playing back the video/audio
files (block 32). The CD-ROM is provided with software for
linking up the host-computer which has the necessary key 5
for uncrippling the video-audio files 4 on the CD-ROM 3,
which linking software maps or automatically directs the end-
user's computer to the host server via the Internet, such
linking software having a11 of the necessary routing informa-
tion for directing the Internet connection to the host compu-
ter's server and web page (URL) (Block 34). The encoding of
the critical information such as "Header" trigger is achieved
utilizing any conventional encoding program, such as, for
example, RSA by Data Security (block 36). This encoding will
create a trigger of a few bytes comprising all of the neces-
sary information to trigger the CD-ROM, and to invoke the
video and/or audio data.
Figure 7 shows the steps involved for de-crippling the
data on the CD-ROM 3 of a receiving or end-user's computer 1
CA 02271012 1999-OS-OS
WO 98I24037 PCTlUS9'7/20929
19
(block 40). A socket-to-socket connection is made between the
host, or sending, computer and the receiving, or end-user's
computer by means of the linking software described above
installed on the end-user's computer (block 42). The Internet
Service Provider (ISP) of the end-user's computer's web of
the Internet sends the data tc the host computer's server
over the Internet, which means that any number of local
servers and gateways and routers will have been involved in
transmitting the data, until it finally arrives at the server
7 serving the web associated with the host computer (block
42). As soon as this socket-to-socket connection is made, the
encoded trigger 5 is sent, at a rate of about 3.6 kbytes a
second (block 44). The end-user's computer has a specially-
dedicated software program fox catching the key, decrypting
the key 5 from the server and data from the CD-ROM 3, combin-
ing the key and data and playing it back. This catcher is a
software program discussed hereinbelow that will direct the
incoming key, such as the header, to a random location in RAM
8 such as cache directory, of th~~ computer (block 46) and the
key will only be visible to tike program. The catcher is
necessary, since, if it were not present, it is the "nature"
of personal computers to randomly dump data which has not had
a specific destination assigned to it. Thus, without the
catcher, the incoming data may be strewn into a different
directory and/or sub-directories,, to, thus, be irretrievably
lost. As soon as the encoded ke~r 5 arrives and is stored in
RAM by means of the catcher program, a subroutine "player" in
the program in the receiving computer begins to decode the
i i '
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
trigger, in order to invoke the correct track of the CD-ROM
(block 48), from which the data passes to the audio/video
subsystem (8,13, Fig. 2), in order to play the video or audio
(block 50). It is noted, and emphasized, that as soon as the
key has been decoded, the video and/or audio data is imme-
diately "played" back by the audio/video subsystems (8,13,
Fig. 2), bypassing the necessity of having to first store the
key, or other trigger, on a hard drive before playback.
Referring specifically to Fig. 8, there are shown the server
1, the user computer 2, and the software processes 3 used for
transmitting the uncrippling key 4 over a network 5, the
combining in RAM 6 of the key 4 and crippled data 7 from the
CD-ROM 8, the rendering or displaying of the media data 9
such as video/audio or animation on the display 10 or from
the audio system 11, and the storing of the key 4 to non-
volatile media 13, such as a hard drive, for permanent owner-
ship of the encrypted CD media.
It is noted that it is possible to "cripple" the
video/audio data on the CD-ROM by other means other than
deleting the header thereof. For example, the file could be
made a hidden file, with the trigger data from the host
computer being a command to remove the hidden status. Alter-
natively, the video/audio file could have a changed exten-
sion, with the trigger data from the host computer being a
command to change the extension. Moreover, the crippling of
the video/audio file may be achieved by the use of ZIP file,
with the trigger data from the host computer being a command
to UNZIP the data. It is, also, within the scope and purview
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
21
of the invention to use a floppy disk for storing the crip-
pled file, as described above, f:or those applications requir-
ing less disk-memory, with the uncrippling data from the host
server being sent to the floppy-disk drive via the catcher
program, as described above for uncrippling the data on the
floppy-disk. Of course, the crippled file may also be stored
on any storage medium, such as the hard drive 11, with the
uncrippling data from the host server being sent to the drive
for that storage medium via the catcher program, as explained
above. The uncrippling data may also be stored directly in a
hard drive or EPROM so that the user has permanent access to
it whenever he wishes to uncripple the file; that is, if the
user wishes to permanently retain the crippled nature of the
data on the CD-ROM, or floppy, he may permanently store the
downloaded uncrippling data in hard drive in order to tempo-
rarily uncripple the data on the CD-ROM or floppy every time
that it is used, as long as such access is authorized by the
server.
Referring to Figs. 9-11, the above-discussed "catcher"
program is shown. Encrypted file;, such as the header for the
crippled CD-ROM data at an end-u;ser's computer, is stored at
a server associated with the Ini~ernet (block 100 in Fig.9).
This header-trigger or other file is encoded and encrypted
in a conventional manner at they server (blocks 102, 104).
This encoding will create a header of about 50K or less
comprising a11 of the necessary ~~nformation necessary to the
video and/or audio data on the C:D-ROM, as is well-known in
the art. Then, the encoded data is sent to the local web
CA 02271012 1999-OS-OS
WO 98/24037 PCTlUS97/20929
22
server (block 36) in order to be sent out over the Internet,
and then to the end-user computer. When the end-user computer
requests that the trigger be downloaded, according to the
process described above (block 106 of Fig. 10), the catcher
program at the end-user computer receives the partial data or
trigger, such as a header for the CD-ROM file (block 108).
The catcher program decodes the data, using a conventional
decoder (block 110), and then sends the data directly the
conventional player of end-user computer (block 112) for
substantially immediate playback. As soon as the encoded
header arrives and stored in the cache directory, the program
entitled "player" in the receiving computer begins to decode
the data, in order to re-generate the original binary code,
from which the data passes to a conventional digital-to-
analog converter, in order to play the video or audio. It is
noted, and emphasized, that as soon as the header has been
decoded, the video and/or audio data starts to play back by
the digital-to-analog converter. That is, it is not necessary
to store the trigger data on a hard drive, although it is
possible to do so, if it is desired to allow the end-user
unobstructed access to the video or audio files on the CD-
ROM, or the like, at any time in the future.
Referring to Fig. 12, an alternative embodiment is
shown. In this embodiment, the use of a hyperCD is obviated,
and the video and/or audio, and other data, is downloaded via
the Internet from a Web page (block 150). The video and/or
audio, and other data, are encrypted with an encryption key.
Each user who is to be able to access the data at that Web
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
23
page will have a corresponding decryption key (block 152) for
decrypting the data. In addition to the video or graphic or
other data being sent, the Web site will also download the
video player, such as JPEG, "QU7:CKTIME", or the like, to the
user's computer via the Interned. The player, such as JPEG,
is also encrypted, so that even after the end user has re-
ceived the video and other data from the Web site via the
Internet, the conventional player stored on the user's com-
puter (block 154) will not be able to play the video. The
data emanating from the Internet. is first identified with the
requesting file of the user's computer (block 158), and then
sent to the media player for playback (block l60) using the
encrypted player, downloaded from the Web site. The encrypted
player, such as JPEG, is decrypted, like the video data,
using the decryption key (block 152) provided by the provider
of the Web site. It is noted that before the video is down-
loaded from the Web site via the Internet, the user must
first enter his password or other protective feature. Accord-
ing to this embodiment of the invention, videos at a Web site
are protected from being viewed without proper authorization,
and if the downloaded video were stored in memory of the
user's computer, it would not be playable without first
downloading the encrypted player, such as JPEG, from the Web
site. Thus, the Web provider is able to protect his video
and/or graphic data from being copied by the end user's
computer. Although the end user may be able to print out a
graphic, this would be of very poor quality. It is also
within scope and purview of the invention to download only
i i '
CA 02271012 1999-OS-OS
WO 98/24037 PCT/U597/20929
24
the encrypted player, for playing back encrypted video and/or
graphics already stored on the requesting, end user's comput-
er. In this case, the video data may be supplied to the end
user in other forms besides the Internet or Intranet, but
still may not be played back without use of the encrypted
player downloaded from the Web site and then decrypted by the
decrypting key at the end user's computer. Alternatively, the
encrypted player may be provided to the end user, and only
the encrypted video files may be sent over the Internet or
Intranet.
Referring now to Fig. 13, a DVD-ROM disk 10 contains a
full-length movie, play, special event, and the like. For
playing the DVD-ROM, there is provided a DVD-ROM player 12,
such as MPEG-2 for playing the video on a TV or monitor 14.
Associated with the player is a microprocessor or CPU 16,
such as that forming part of a PC, or a dedicated micropro-
cessor. The microprocessor 16 conventionally communicates
with the DVD-player 12 via data ports 18. Associated with the
microprocessor is memory storage 20 for storing software that
allows the system of the invention to discriminate between
DVD-ROM's requiring pay-per-view play) and those that are
free and do not require pay-per-view play. Specifically, when
the DVD-ROM to be played is provided with one of the three
parental codes, then the software of the invention will treat
that DVD-ROM in the conventional manner, by allowing instant
playing thereof. Referring to Fig. 1, this is seen by the
software determining that a non-pay-per-view DVD-ROM is
present, or non-Hyper-DVD disk, and will automatically pro-
CA 02271012 1999-OS-OS
WO 98I24037 PCT/ITS97120929
25.
vide a trigger-signal 24 to a data switch 26. The data
switch, upon receiving the tr:igger-signal, will connect a
conventional decryption chip 28 to the DVD-player 12, whereu-
pon the data on the DVD-ROM is decrypted and played back, in
the conventional manner.
If the software of the inve=ntion has determined that the
DVD-ROM 10 is a Hyper-DVD, that: is, a pay-per-view DVD, by
detection of a code 4 rather than one of the three parental
codes, via the header extension or binary code on the DVD-
ROM, then the communications-portion 30 of the software of
the invention will seek to retr_Leve the enabling data from a
service provider by calling the service-provider over the
PSTN. According to the invention, this enabling data may be
obtained from the Internet, or) alternatively, via a cable
company service provider for t=hose users having cable TV
service. In the case of obtaining the enabling data from a
cable-TV company, the standaz-d cable-box or set-tip box
converter 32 is used for the communications. Also, for those
users who utilize a cable boy: having Internet accessing
device, the microprocessor 16 may be that microprocessor of
the Internet accessing device it=self, with the enabling data
being transmitted from the Internet or from the cable TV
provider. Instead of using a fourth parental code 4 for
indicating the presence of a Hyper-DVD-ROM, a separate and
distinct country code may be used, which country code, in-
stead of representing an actual country, represents the a
Hyper-DVD. The enabling data for allowing access to the DVD-
ROM data may be any of those set forth in Applicants above-
i i
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97120929
26
mentioned copending patent applications, such as missing
header, etc., and may also include conventional password, ID,
security methods, or other standard verification keys, which
are well-known and conventional.
After the user's software requests the downloading of
the enabling data, the service provider will either send the
data, of the requester is a valid customer and current on his
account, or will reject the request. If the service provider
transmits the necessary enabling data, then the software
portion 30 of the invention sends the trigger-data 24 to the
data switch 26 to connect the decryption chip 28 to the DVD-
player 12.
While the invention is preferably suited for DVD-ROM
disks, other large-storage disks, such as laser disks, video
disks, etc., may embody the invention. Also, the invention
may be used for those DVD-ROMs that do not employ parental
and/or country codes; in this case, the code on the DVD-ROM
for indicating that it is a Hyper-DVD requiring a verifica-
tion key or password from a service-provider may be any of
those set forth in Applicants' copending applications listed
above, such as supplying the missing header, or any other
data for uncrippling the crippled data on the DVD-ROM. Also,
the use of a password or key, and the like, which would be
provided by the service-provider if the requester passes a
set of requirements, such as credit check, and the like, may
be used.
CA 02271012 1999-05-OS
WO 98/24037 PCTlUS97/20929
27
The following is the software code listing for the
server of the host computer's web for bursting the encoded
"header" trigger data through the Internet.
SENDFIhE.C
#!/usr/sbin/perl
# Get the input
read(STDIN, $buffer, $ENVt'CONTENT LENGTH ');
# Split the name-value pairs
Qpairs = split(/&/, $buffer);
foreach $pair (Qpairs)
($name, $value) - split (/_/, $pair) ;
# UN-Webify plus signs and %-encoding
$value = tr/+/ /;
$value - s/% ( [a-fA-~~O-9] [a-fA-FO-9] )
/pack ( "C" , hex ( $1 ) ) /ec3;
$FORM{$name} - $value;
}
# Location of the CMC files
$CMCDIR = '/UL/people/CMC/' . $FORM~'dir');
# If the $CMCDIR director is not found, exit
if ( ! -d "$CMCDIR" )
&Error("$CMCDIR not found on this system.
Please check the path and try agai
n\n");
# If there are no files in the CMC directory no point trying to
transfer files
else
opendir( THISDIR, "$CMCDIR" );
~allfiles = grep(/\.CMC/, readdir(THISDIR));
if ( ! Qallfiles ) {
&Error ( "There are curre;nly no CMC f ilex
in this directory.
Try again later.");
sort Qallfiles;
print ("HTTP/1.0 200\n");
print ("Content-type: multipart/x:-mixed-replace; boundary=
---ThisRandomString---\n\n");
print ("---ThisRandomString---\n");
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97I20929
28
#Send the First file with .IVD extension which invokes
IVIDEO.EXE
print "Content-type: application/x-IVD\N\N";
$CONTENT = 'cat $CMCDIR/CMCOO1.IVD';
print $CONTENT;
print ("\n---ThisRandomString---\n");
# Now send rest of the .CMC files which would call filehdl.exe
while (Qallfiles)
$file - shift Qallfiles;
print "Content-type: application/x-CMC\n\n";
print "$file\n";
$CONTENT = 'cat $CMCDIR/$file';
print $CONTENT;
print ("\n---ThisRandomString---\n");
# Subroutine that tells whats wrong
sub Error
print ("Content-type: texxt/html\n\n");
print ("<Title>Error</Title>\n");
print ("<HI>Error: </H1><p>\n");
print (Q ) ;
print ("<p><p><hr><a href=\"mailto:cmcinter\
c~suba . com\
">Contact webmaster </a>");
exit ( ) ;
COPYRIGHT - 1996 PLANET GRAPHICS, INC.
SUBSTITUTE SHEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
29
The following is the software code listing at the host-
computer for encoding the "header" binary data into seven-
digit ASCII text format, and al~~o listed is the software code
listing for the "player", or decoder, at each receiving, or
end-user, computer, for decoding the encoded text format back
into binary:
HOOK MENUl MENU LOADONCALL MOVEABLE DISCHARDABLE
POPUP "&File"
MENUITEM "&Encode...", 1169
MENUITEM "&Decode...", 1170
POPUP "&Actions"
MENUITEM "&Concatenate Files...", 1171
MENUITEM "&View A Report File...",1172
MENUITEM "C&lean Directories...", 1173
MENUITEM SEPARATOR
MENUITEM "&Display Wincode Task:",1174
MENUITEM "&Hide Wincode Task", 5
117
POPUP "&Options"
MENUITEM "&Encode...", 1176
MENUITEM "&Decode...", 1177
MENUITEM "&Wincode...", 117B
MENUITEM "&Winsort...", 1179
MENUITEM SEPARATOR
MENUITEM "&Viewer...", 1180
MENUITEM SEPARATOR
MENUITEM "&ZIP/UNZIP...", 1181
MENUITEM SEPARATOR
MENUITEM "&Hook App...", 1l82
POPUP "&Help"
MENUITEM "&Contents", 1183
MENUITEM "&Search for Help on...",1184
MENUITEM "&How to Use Help", 1185
MENUITEM "&Wincode FAQ", 1186
MENUITEM "C&opyrights", 1187
MENUITEM SEPARATOR
MENUITEM "O&rdering the Help file...",
1188
MENUITEM SEPARATOR
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
MENUITEM "&.About Wincode...", 1189
MENUITEM SEPARATOR
MENUITEM "&UnHook Wincode", 1190
MENUITEM SEPARATOR
MENUITEM "E&xit Wincode", 1191
HOOK MENU2 MENU LOADONCALL MOVEABLE DISCARDABLE
POPUP "&File"
MENUITEM "&Encode...", 2269
MENUITEM "&Decode...", 2270
POPUP "&Actions"
MENUITEM "&Concatenate Files...", 2271
MENUITEM "&View A Report File...", 2272
MENUITEM "C&lean Directories...", 2273
MENUITEM SEPARATOR
MENUITEM "Display Wincode Task", 2274
MENUITEM "&Hide Wincode Task", 2275
POPUP "&Options"
MENUITEM "&Encode...", 2276
MENUITEM "&Decode...", 2277
MENUITEM "&Wincode...", 2278
MENUITEM "&Winsort...", 2279
MENUITEM SEPARATOR
MENUITEM "&Viewer...", 2280
MENUITEM SEPARATOR
MENUITEM "&ZIP/UNZIP...", 2281
MENUITEM SEPARATOR
MENUITEM "&Hook App...", 2282
POPUP "&Help"
MENUITEM "&Contents", 2283
MENUITEM "&Search for Help on...", 2284
MENUITEM "&How to Use Help", 2285
MENUITEM "&Wincode FAQ", 2286
MENUITEM "C&opyrights", 2287
MENUITEM SEPARATOR
MENUITEM "O&rdering the Help file...", 2288
MENUITEM "&About Wincode...", 2289
MENUITEM SEPARATOR
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
31
MENUITEM "&UnHook Wincode", 22e0
MENUITEM SEPARATOR
MENUITEM "E&xit Wincode", 229l
HOOK MENUSMENU LOADONCALL MOVE~~.BLEDISCARDABLE
_
C
POPUP
"kFile"
MENUITEM "&Encode...", 3369
MENUITEM "&Decode...", 3370
POPUP
"&Actions"
MENUITEM "&Cancatenate Files...", 3371
MENUITEM "&View A Report File...", 3372
MENUITEM "C&lean Directories...", 3373
MENUITEM SEPARATOR
MENUITEM "&Display Wincode Task:", 3374
MENUITEM "Hide Wincode Task", e375
POPUP
"&Options"
MENUITEM "&Encode...", 3376
MENUITEM "&Decode...", 3377
MENUITEM "&Wincode...", 3378
MENUITEM "&Winsort...", 3379
MENUITEM SEPARATOR
MENUITEM "&Viewer...", 3380
MENUITEM SEPARATOR
MENUITEM "&ZIP/UNZIP...", 3381
MENUITEM SEPARATOR
MENUITEM "&Hook App...", 3382
POPUP
"&Help"
MENUITEM "&Contents", 3383
MENUITEM "&Search for Help on...", 3384
MENUITEM "&How to Use Help", 3385
MENUITEM "&Wincode FAQ", 3386
MENUITEM "C&opyrights", 3387
MENUITEM SEPARATOR
MENUITEM "O&rdering the Help file. ..", 3388
MENUITEM SEPARATOR
MENUITEM "&About Wincode...", 3389
MENUITEM SEPARATOR
MENUITEM "&UnHook Wincode", 3390
MENUITEM SEPARATOR
MENUITEM "E&xit Wincode", 3391
CA 02271012 1999-OS-OS
WO 98/Z4037 PCT/US97/20929
32
HOOK_WORKING DIALOG LOADONCALL MOVEABLE
DISCARDABLE 100, 89, 141, 55
STYLE WS_POPUP ~ WS VISIBLE ~ WS_CAPTION
CAPTION "Wincode Working..."
FONT 8, "MS Sans Serif"
LTEXT "", 103, 81, 19, 27, 8
LTEXT "", 102, 81, 9, 27, 8
PUSHBUTTON "&Stop", 104, 18, 37, 45, 13
PUSHBUTTON "&Quit", 105, 78, 37, 45, 13
RTEXT "Total Job:", -1, 12, 19, 66, 8
CONTROL "", -l, "STATIC", SS_BLACKFRAME
WS_CHILD ( WS VISIBLE, 6, 6, 129, 25
RTEXT "", 101,~12, 9, 66, 8
BASE64_TYPE DIALOG LOADONCALL MOVEABLE
DISCARDABLE 71, 26, 123, 181
STYLE DS_MODALFRAME ~ WS POPUP ~ WS CAPTION ~ WS~SYSMENU
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 12, 163, 45, 13
RADIOBUTTON "Application: &Octet-Stream:, 301, 12, 19, 99, 12,
BS_AUTORADIOBUTTON ' WS_TABSTOP
RADIOBUTTON "Application: &Postscript:, 302, 12, 34, 99, 12,
HS_AUTORADIOBUTTON ~ WS TABSTOP
RADIOBUTTON "Image: &JPEG" g303, 12, 49, 99, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
RADIOBUTTON "Image: &GIF", 304, 12, 64, 99, 12,
BS_AUTORADIOBUTTON ~ WS TABSTOP
RADIOBUTTON "Image: &X-BMP", 305, 12, 79, 99, 12
BS-AUTORADIOBUTTON ~ WS_TABSTOP
RADIOBUTTON "Video: &MPEG", 306, 12, 94, 99, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
RADIOBUTTON "Audio: X-&WAV", 307, 12, 109, 99, 12,
BS_AUTORADIOBUTTON ' WS_TABSTOP
PUSHBUTTON "Cancel", 2, 66, 163, 45, 13
GROUPBOX "Content-Type", 101, 6, 5, 111, 152,
BS-GROUPBOX ~ WS GROUP
DESC_TEXT DIALOG LOADONCALL MOVEABLE DISCARDABLE 9,50,288,138
STYLE DS_MODALFRAME I WS_POPUP ~ WS_CAPTION ~ WS_SYSMENU'
CAPTION "Descriptive Text will be added to first
Encoded file..."
FONT 8, "MS Sans Serif"
EDITTEXT 20Z, 6, 6, 276, 108, ES MULTILINE ~ ES_AUTOVSCROLL
ES_WANTRETURN
I WS_BORDER ~ WS_VSCROLL ~ WS_TABSTOP
DEFPUSHBUTTON "OK", 1, 69, l20, 60, 13
PUSHBUTTON "Cancel", 2, 159, 120, 60, 13
DIR_SELECT DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 20,
147, 116
STYLE DS_MODALFRAME ~ WS OVERLAPPED ~ WS_CAPTION
WS SYSMENUFONT 8, "Helv"
EDITTEXT 101, 42, 5, 98, 12, ES AUTOHSCROLL ~ WS~BORDER
SUBSTITUTE SHEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
33
WS_TABSTOP
DEFPUSHBUTTON "OK", 1, 8B, 22, 50, 14LISTBOX 103, 6, 30, 64,
82, LBS_STANDARD ~ WS_TABSTOPPU3HBUTTON "Cancel", 2, 88, 41,
50, 14LTEXT "D&irectories:", -1,, 6, 18, 64 10LTEXT
"&Directory:" -1, 6, 6, 36, 10~1~XISTS DIALOG LOADONCALL
MOVEABLE DISCARDABLE 41, 34, 17'7, 54STYLE DS MODALFRAME
WS_POPUP ~ WS_CAPTION ~ WS SYSMENUCAPTION "Wincode - Output
File"FONT 8, "MS Sans Serif"~ PZJSHBUTTON "&Overwrite", 1, 9,
36, 45, 13 PUSHBUTTON "&Rename",, 101, 66, 36, 45, 13
PUSHBUTTON "&Skip File", 2, 123,, 36, 45, 13 CTEXT "", 102,
21, 15, 135, 8 CONTROL "", "STA'.~IC", SS_BLACKFRAME j WS CHILD
WS_VISIBLE, 15, 6, 147, 21}FIDE OPEN DIALOG LOADONCALL
MOVEABLE DISCARDABLE 40, 20, 20:?, 130STYLE DS_MODALFRAME
WS_OVERLAPPED ~ WS_CAPTION I WS SYSMENUFONT 8, "Helv"{
EDITEXT 100, 42, 6, 98, 12, ES_AUTOHSCROLL ~ WS_BORDER
WS_TABSTOP DEFPUSHBUTTON "OK", :.) 146, 5, 50, 14 LISTBOX 102,
6, 44, 64, 82, LBS_STANDARD ~ WS_TABSTOP LISTBOX 103, 76, 44,
64, 82, LBS_STANDARD ~ WS_TABSTOP PUSHBUTTON "Cancel", 2,
146, 23, 50, 14 LTEXT "File&name:", -1, 6, 8, 36, 10 LTEXT
"Directory:", -1, 6, 20, 36, 10 LTEXT "", 101, 42, 20, 98, 10
LTEXT "&Files:", -1, 6, 32, 64, 10 LTEXT "&Directories:", -1,
76, 32, 64, 10}RENAME DIALOG LOADONCALL MOVEABLE DISCARDABLE
34, 31, l99, 57STYLE DS_MODALFRAME ~ WS_POPUP ~ WS_CAPTTON
WS_SYSMENUFONT 8, "MS Sans Serif:"{ EDITEXT 102, 6, 21, 171,
12 ES_AUTOHSCROLL ~ WS BORDER ~ WS_TABSTOP PUSHBUTTON "?",
103, 180, 20, 12, 13 DEFPUSHBUT7.'ON "OK", 1, 42, 39, 45, 13
PUSHBUTTON "Cancel", 2, 111, 39, 45, 13 LTEXT "Enter a VALID
DOS filename:", I04, 6, 6, 159, 9}VIEW RPT DIALOG LOADONCALL
MOVEABLE DISCARDABLE 20, 43, 300, 154STYLE DS-MODALFRAME
WS_POPUP ~ WS_CAPTION ~ WS SYSME:NUCAPTION "Wincode - Report
File Viewer"FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 2, 111, 135, 78, 13
EDITTEXT 101, 6, 15, 288, 99, E~~_MULTILINE ~ ES_READONLY
WS_BORDER ~ WS_VSCROLL ~ WS_H~~CROLL ~ WS_TABSTOPCHECKBOX
"&Delete Report File After Viewing", 103, 6, 117, 138, 12,
BS-AUTOCHECKBOX ~ WS_TABSTOP LTE;XT "File:", -1, 7, 5, 15, 8
LTEXT "", 102, 25, 5, 270, 8}
COPYRIGHT - l996 PLANET GRAPHICS, INC.
i i
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
34
The following is the software code listing at each
receiving, or end-user, computer, for the catcher for receiv-
ing the uncrippling data in the cache directory of RAM and
directing it to the proper drive:
MAIN MENU MENU LOADONCALL MOVEABLE DISCARDABLE
POPUP"&File"
MENUITEM "&Encode...", 101
MENUITEM "&Decode...", 102
MENUITEM SEPARATOR
MENUITEM "E&xit", 1
POPUP
"&Actions"
MENUITEM "&Concatenate Files...", 103
MENUITEM "&View a Report File...",104
MENUITEM "C&lean Directories...", 105
MENUITEM SEPARATOR
MENUITEM "&Interactive Drag/Drop",121
MENUITEM SEPARATOR
MENUITEM "Hook Wincode", 122
POPUP
"&Options"
MENUITEM "&Encode...", 106
MENUITEM "&Decode...", 107
MENUITEM "&Wincode...",108
MENUITEM "W&insort...",109
MENUITEM SEPARATOR
MENUITEM "&Viewer...", 110
MENUITEM SEPARATOR
MENUITEM "~ZIP/UNZIP...", 111
MENUITEM SEPARATOR
MENUITEM "&Hook App...", 112
POPUP "&Help"
MENUITEM "&Contents", 113
MENUITEM "&Search for Help on...", 114
MENUITEM "&How to Use Help", 115
MENUITEM "&Wincode FAQ", 116
MENUITEM "C&opyrights", 117
MENUITEM SEPARATOR
MENUITEM "O&rdering the Help file...", 118
CA 02271012 1999-OS-OS
WO 98/2403? PCT/US97/20929
MENUITEM SEPARATOR
MENUITEM "&.About Wincode...", 119
ABOUT DIALOG LOADONCALL MOVEABLE DISCARDABLE 76, 55, 135, 141
STYLE DS_MODALFRAME ~ WS POPUP , WS CAPTION ~ WS SYSMENU
CAPTION "About CMCCODE
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 2, 14, 123, 45, 13
PUSHBUTTON "More...", l, 74, 123, 45, 13
CTEXT "CMCCODE:", -1, 45) 9, 45, 8
CTEXT "Video Encoder/Decoder", -l, 10, 18, 114, 8
CTEXT "for the Internet", -1, 34, 27, 66, 8
CTEXT "Copyright\xA9 l993,1994", -l) 24, 72, 87, 8
CTEXT "Snappy~Inc.", -1, 44, 63, 45, 8
CONTROL "", -l, "STATIC", SS_BLACKFRAME ~ WS_CHILD
WS_VISIBLE, 6, 6, 123, 111
CTEXT "Version 1.0", -1, 40, 37, 54, 8
CTEXT "Developers Kit Provided by:", -l, 17, 49, 101, 8
CTEXT "created by Caesar Collazo", -1, 18, 82, 99, 8
CTEXT "cmcinterQsuba.com", -1, 12, 103, 111, 8
CTEXT "Questions...Comments...e-mail to:", -1, 9, 93, 117, 8
CONTROL "", -l, "STATIC", SS_BLACKFRAME I WS CHILD
WS_VISIBLE, 12, 47, 111, 1
CONTROL "", -l, "STATIC", SS BLACKFRAME , WS CHILD
S VISIBLE, 12, 59, 111, 1
ALL_ONE DIALOG LOADONCALL MOVEABLE DISCARDABLE 35, 31, 132, 60
STYLE DS_MODALFRAME ~ WS_POPUP ~ WS CAPTION ~ WS SYSMENU
CAPTION "CMCCODE - Encode Filename"!
FONT 8, "MS Sans Serif"
EDITTEXT 10l, 28, 23, 75) 12, ES_AUTOHSCROLL
WS BORDER ( WS TABSTOP
DEFPUSHBUTTON "OK", 1, 12, 42, 4!~, 13
PUSHBUTTON "Cancel", 2, 75, 42, ~45, 13
CTEXT "Enter a filename for ALL the files:", -1, 6, 7, 120, 9
BASE64_MODE DIALOG LOADONCALL MO'~IEABLE DISCARDABLE 93,
54, 111, 69
STYLE DS_MODALFRAME ! WS_POPUP ~ WS_CAPTION ~ WS_SYSMENU
CAPTION "BASE64 Method"
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 6, 51, 45,, 13
RADIOBUTTON "&MIME Conformant", 323, 12, 10, 87, 12,
BS_AUTORADIOBUTTON ~ WS_GROt7P ~ WS_TABSTOP
RADIOBUTTON "&Raw BASE 64", 324, 12, 25, 87, 12,
BS_AUTORADIOBUTTON ~ WS_TAB;3TOP
PUSHBUTTON "Cancel", 2, 60, 51, ~~5, 13
GROUPBOX "", 106, 6, 2, 99, 42, BS GROUPBOX
CHOOSE~V DIALOG LOADONCALL MOVEAF3LE DISCARDABLE 15, 20, 174, 78
SUBSTITUTE St~EET (RULE 26)
CA 02271012 1999-OS-OS
WO 98I24037 PCTlUS97I20929
36
STYLE DS_MODALFRAME ~ WS_POPUP ~ WS_CAPTION ~ WS SYSMENU
CAPTION "Select a Report File Viewer"
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 36, 60, 45, 13
RADIOBUTTON "&Wincode Internal File Viewer (32K Max.)"',
70l, 12, 10, 150, 12, BS_AUTORADIOBUTTON
WS_GROUP ( WS TABSTOP
RADIOBUTTON "Windows &Notepad", 702, 12, 24, 150, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
RADIOBUTTON "&Other:", 703, 12, 38, 33, 12,
BS_AUTORADIOBUTTON ~ WS TABSTOP
EDITTEXT 704, 48, 38, 102, 12, ES_AUTOHSCROLL
WS_BORDER ~ WS_TABSTOP
PUSHBUTTON "?", 705, 153, 38, 12, 13
PUSHBUTTON "Cancel", 2, 93, 60, 45, 13
GROUPBOX "", 101, 6, 2, 162, 54, BS_GROUPBOX
CLEAN_DIR DIALOG LOADONCALL MOVEABLE DISCARDABLE 52, 51, 228, 162
STYLE DS_MODALFRAME ( WS_POPUP ~ WS_CAPTION ~ WS SYSMENU
CAPTION "Clean Directories"
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 92, 143, 45, 13
CHECKBOX "", 601, 12, 19, 192, 12, BS_AUTOCHECKBOX ~ WS TABSTOP
PUSHBUTTON "?", 605, 207, 19, 12, 13
CHECKBOX "", 602, 12, 34, 192, 12, BS AUTOCHECKBOX ~ WS_TABSTOP
PUSHBUTTON "?", 606, 207, 34, 12, 13
CHECKBOX "", 603, 12, 49, 192, 12, BS_AUTOCHECKBOX ~ WS TABSTOP
PUSHBUTTON "?", 607, 207, 49, 12, 13 -
CHECKBOX "", 604, 12, 64, 192, 12, BS_AUTOCHECKBOX ~ WS_TABSTOP
PUSHBUTTON "?", 608, 207, 64, 12, 13
CHECKBOX "Empty the &Clipboard (release global memory)",
612, 12, 102, 192, 12, BS_AUTOCHECKBOX ' WS TABSTOP
PUSHBUTTON "?", 613, 207, 102, 12, 13
PUSHBUTTON "Clean &A11 Directories", 614, 12, 120, 96, 13
PUSHBUTTON "&Report Files Only (*.rpt)", 615, 120, 120, 96, 13
PUSHBUTTON "Cancel", 2, 165, 143, 45, 13
PUSHBUTTON "&Help", 611, 19, 143, 45, 13
GROUPBOX "Select Directories to Clean", 101, 7, 5, 216, 93,
BS_GROUPBOX
LTEXT "Status:", -1, 12, 83, 27, 8
LTEXT "", 610, 42, 83, 177, 8
DEC_CONFIG DIALOG LOADONCALL MOVEABLE DISCARDABLE 26, 26,
250, I47
STYLE DS_MODALFRAME ~ WS_POPUP ~ WS-CAPTION ~ WS SYSMENU
CAPTION "Decode Options
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", l, 195, 9, 45, 13
CHECKBOX "Du&mp Files", 301, 12, 9, 69, 12,
SUBSTITUTE SHEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98I24037 PCT1US97/20929
37
BS_AUTOCHECKBOX ' WS_TABSTOP
CHECKBOX "&Error Checking", 303, 87, 9, 72, 12,
BS_AUTOCHECKBOX ~ WS TABSTOP.
CHECKBOX "Sort b&y Extension", 304, 87, 21, 72, 12,
BS_AUTOCHECKBOX ~ WS TABSTOP
PUSHBUTTON "E&xtension(s)~..", 305, 6, 42, 66, 13
COMBOBOX 306, 120, 41, 42, 60, C'BS_DROPDOWNLIST
WS_VSCROLL ~ WS_TABSTOP
EDITTEXT 307, 12, 70, l32, 9, ES_AUTOHSCROLL
NOT WS_BORDER ~ WS_TABSTOP
PUSHBUTTON "?", 308, 147, 67, 12, 13
RADIOBUTTON "Def&ault to location of Input file",
309, 12, 99, l32, 12, BS_AUTORADIOBUTTON
WS_GROUP ~ WS TABSTOP
RADIOBUTTON "User select &on Decode", 310, 12, 112, 132, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
RADIOBUTTON "&Set:", 311, 12, 125, 27, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
EDITTEXT 312, 42, 125, 102, 12, ES_AUTOHSCROLL
WS_BORDER ( WS_TABSTOP
PUSHBUTTON "?", 313, 147, 124, 12, 13
RADI,OBUTTON "&Wincode select", 314, 174, 1l0, 66, 12,
BS_AUTORADIOBUTTON ~ WS GROUP ' WS_TABSTOP
RADIOBUTTON "&User select", 315, 174, 125, 66, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
PUSHBUTTON "Cancel", 2, 195, 27, 45, 13
PUSHBUTTON "&Defaults", 316, 195, 45, 45, 13
PUSHBUTTON "&Help", 317, 195, 63, 45, 13
GROUPBOX "Decoded File Name", 102, 168, 96, 75, 45,
BS_GROUPBOX
LTEXT "Code Type:", -1, 78, 44, 39, 8
GROUPBOX "Decoded File Directory", 101, 6, 87, 156,54,
BS_GROUPBOX
CONTROL "", -1, "STATIC", SS
BLACKFRAME ~ WS CHILD
_
WS_VISIBLE, 6, 6, 156, 30
GROUPBOX "Temp Directory", 103, 6, 59, 156, 24, GROUPBOX
BS
DEC_EXT DIALOG LOADONCALL MOVEABLE DISCARDABLE 49, 30, 144, 133
STYLE DS
MODALFRAME ~ WS
POPUP ~ WS
CAPTION ~ WS
SYSMENU
_
_
-
Y
CAPTION "Decode File Extension(s)"
FONT 8, "MS Sans Serif"
EDITTEXT 318, 12, 25, 45, 12, ES
AUTOHSCROLL
__
WS
BORDER ~ WS
TABSTOP
_
_
PUSHBUTTON "&Add", 320, 12, 43, ~45, 13
PUSHBUTTON "&Delete", 321, 12, 6:1, 45, 13
PUSHBUTTON "A&ssociate", 322, 12, 79, 45, 13
LISTBOX 319, 73, 26, 58, 69, LBS NOTIFY
WS_BORDER ~ WS_BORDER ~ WS
'JSCROLL
_
DEFPUSHBUTTON "OK", 1, 18, 115, 45, 13
PUSHBUTTON "Cancel", 2, 81, 115, 45, 13
LTEXT "Enter Decode Extension: (Max + 20)", -1, 13, 120, 8
12,
CONTROL "", -1, "STATIC", SS
BLA(~KFRAME ~ WS CHILD
_
WS VISIBLE, 6, 6, 132, 102
CA 02271012 1999-OS-OS
WO 98/24037 PCTJUS97/20929
38
LTEXT "Ext. Count:", -l, 73, 95, 39, 8
LTEXT "", 323, 114, 95, 16, 8
DEL_FILES DIALOG LOADONCALL MOVEABLE DISCARDABLE 63,20,78,127
STYLE DS_MODALFRAME ~ WS OVERLAPPED , WS CAPTION , WS-SYSMENU
FONT 8, "Helv
DEFPUSHBUTTON "OK", 2, 16, 108, 45, 13
LISTBOX 609, 7, 19, 64, 82, LBS_STANDARD ' WS_TABSTOP
CTEXT "Files being deleted:", -1, 4, 7, 69, 10
DIR_SELECT DIALOG LOADONCALL MOVEABLE DISCARDABLE 15,20,147,116
STYLE DS_MODALFR.AME ' WS OVERLAPPED ~ WS'CAPTION ~ WS SYSMENU
FONT 8, "Helv"
EDITTEXT 101, 42, 5, 98, 12, ES~AUTOHSCROLL ~ WS BORDER
' WS TABSTOP
DEFPUSHBUTTON "OK", 1, 88, 22, 50, 14
LISTBOX 103, 6, 30, 64, 82, LBS_STANDARD ~ WS TABSTOP
PUSHBUTTON "Cancel", 2, 88, 41, 50, 14
LTEXT "D&irectories:", -1, 6, 18, 64, 10
LTEXT "s~Directory:", -1, 6, 6, 36, 10
DONE DIALOG LOADONCALL MOVEABLE DISCARDABLE 21, 32, 207, 54
STYLE DS_MODALFRAME ~ WS_POPUP ~ WS CAPTION ~ WS_SYSMENU
CAPTION "CMCCODE - Done!
FONT 8, "MS Sans Serif"
CTEXT "", 10l, 12, 14, 184, 9
CONTROL "", -l, "STATIC", SS_BLACKFRAME
WS_CHILD ~ WS_VISIBLE, 6, 6, 195, 25
DEFPUSHBUTTON "OK", 2, 64, 36, 78, 13
DONE_SHOW DIALOG LOADONCALL MOVEABLE DISCARDABLE 21, 32, 207, 54
STYLE DS_MODALFRAME ~ WS_POPUP ~ WS_CAPTION ~ WS SYSMENU
CAPTION "CMCCODE - Done!
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 2, 18, 36, 78, 13
PUSHBUTTON "&View Report File", 1, 111,36, 78, 13
CTEXT "", 101, 12, 14, 184, 9
CONTROL "", -1, "STATIC", SS_BLACKFRAME ~ WS-CHILD
WS VISIBLE, 6, 6, 195, 25
DRAGDROP DIALOG LOADONCALL MOVEABLE DISCARDABLE 119,85,139,1l0
STYLE DS_MODALFRAME ~ WS POPUP ' WS CAPTION ~ WS SYSMENU
CAPTION "Interactive Drag & Drop
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 18, 92, 45, 13
RADIOBUTTON "&Encode", 802, 13, 39, 48, 12,
BS_AUTORADIOBUTTON ~ WS_GROUP ~ WS_TABSTOP
RADIOBUTTON "&Decode", 803, 13, 53, 48, 12,
BS AUTORADIOBUTTON ' WS TAHSTOP
SUBSTITUTE SHEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97l20929
39
RADIOBUTTON "E&xt. Based", 804, 13, 67, 48, 12,
BS_AUTORADIOBUTTON ( WS_TABSTOP
CHECKBOX "&Zip First", 805, 75, 39, 54, 12,
BS_AUTOCHECKBOX ( WS TABSTOP
CHECKBOX "U&NZIP After", 806, 75, 53, 54, 12,
BS_AUTOCHECKBOX ( WS_TABSTOP
CHECKBOX "&Winsort First", 807, 75, 67, 54, 12,
BS_AUTOCHECKBOX ( WS_TABSTOP
PUSHBUTTON "Cancel", 2, 75, 92, 45, 13
GROUPBOX "Drop to:", 101, 7, 26, 57, 57, BS_GROUPBOX
GROUPBOX "Options:", 102, 70, 26, 63, 57, BS_GROUPBOX
COMBOBOX 801, 69, 7, 64, 66, CBS_DROPDOWNLIST (
WS_VSCROLL ( WS TABSTOP
LTEXT "CMC Method:", -1, 6, 10, 60, 8
ENC_CONFIG DIALOG LOADONCALL MOVEABLE DISCARDABLE 10, 23,
262, 189
STYLE DS_MODALFRAME ( WS_POPUP ( WS CAPTION ( WS SYSMENU
CAPTION "Encode Options
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 206, 9, 46, 13
CHECKBOX "&Line Checksums", 201, 12, 9, 72, 12,
BS_AUTOCHECKBOX ( WS_TABSTOP
CHECKHOX "&File Checksums", 202, 12, 24, 72, 12,
BS_AUTOCHECKBOX ( WS TABSTOP
CHECKBOX "Fil&e Headers" g203, 12, 39, 72, 12
CHECKBOX "File Desc&ription", 204, 12, 54, 72, 12,
BS_AUTOCHECKBOX ( WS TABSTOP
CHECKBOX "Des&criptive Name", 205, 12, 69, 72, 12,
BS_AUTOCHECKBOX ( WS_TABSTOP
CHECKBOX "I&nclude Table", 206, 90, 9, 72, 12,
BS_AUTOCHECKBOX ~ WS_TABSTOP
CHECKBOX "Make E&MBL Files", 207, 90, 24, 72, 12
CHECKBOX "Sin&gle File", 208, 90, 39, 72, 12
CHECKBOX "All &In One File", 209, 90, 54, 72, 12
CHECKBOX "Number b&y Ext.", 210, 90, 69, 72, 12
EDITTEXT 211, l23, 90, 42, 12
EDITTEXT 2l2, 123, 107, 42, 12
RADIOBUTTON "Def&ault to location of input file", 213, 12,
l38, 132, 12, BS_AUTOR.ADIOB'UTTON ( WS GROUP ( WS TABSTOP
RADIOBUTTON "User select &on Encode", 214, 12, 152, 132, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
RADIOBUTTON "&Set:", 215, 12, 166, 27, 12,
BS_AUTORADIOBUTTON ( WS_TAB,STOP
EDITTEXT 216, 42, 166, 105, 12, :ES AUTOHSCROLL
WS_BORDER ( WS_TABSTOP
PUSHBUTTON "?", 217, 150, 166, 1:2, 13
COMBOBOX 218, 2l3, 90, 42, 57, Cl3S_DROPDOWNLIST
WS_VSCROLL ( WS_TABSTOP
COMBOBOX 219, 213, 107) 42, 39) CBS DROPDOWNLIST (
WS_VSCROLL ( WS_TABSTOP
RADIOBUTTON "&Wincode select", 2;Z0, 177, 148, 69, 12,
BS_AUTORADIOBUTTON ( WS_GRO1:JP ( WS_TABSTOP
RADIOBUTTON "&User select", 221, 177, 164, 69, 12,
SUBSTITUTE 5flEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98/24037 PCTJUS97/20929
BS_AUTORADIOBUTTON ~ WS_TABSTOP
PUSHBUTTON "Cancel", 2, 206, 27, 46, 13
PUSHBUTTON "&Default", 222, 206, 45, 46, 13
PUSHBUTTON "&Help", 223, 206, 63, 46, 13
CONTROL "", -1, "STATIC", SS_BLACKFRAME , WS CHILD
WS VISIBLE, 6, 6, 159, 78
LTEXT "Bytes per File (Lines/File):", 103, 6, 93, 114, 8
LTEXT "Extension for Encoded Files:", 104, 6, 110, 108, 8
GROUPBOX "Encoded File Name", 102, 171, 132, 51,
84,
GROUPBOX
BS
_ 159, 60,
GROUPBOX "Encoded File Directory", 101, 6, 123,
BS
GROUPBOX
_
LTEXT "Code Type:", 105, 171, 93, 39, 8
LTEXT "File Type:", -1, 171, 110, 39, 8
EXT 76, 55, 207, 111
INFO DIALOG LOADONCALL MOVEABLE DISCARDABLE
_ SYSMENU
STYLE DS
MODALFRAME ~ WS
POPUP ~ WS
CAPTION I WS
_
_
-
CAPTION "More About CMCCODE
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 2, 81, 93, 45, 13
CONTROL "", -1, "STATIC", SS_BLACKFRAME
WS_CHILD ~ WS_VISIBLE, 6, 6, 195, 81
CONTROL "", -1, "STATIC", SS
BLACKFRAME
_
WS
CHILD ~ WS
VISIBLE, 13, 57, 180, 1
_
_
LTEXT "CMCCODE Version:", -1, 15, 12, 72, 8
LTEXT "WCodeDLL Version:", -1, 15, 23, 72, 8
LTEXT "HookDLL Version:", -1, 15, 34, 72, 8
LTEXT "Release Date:", -1, 15, 45, 72, 8
LTEXT "Memory:", -1, 15, 62, 72, 8
LTEXT "System Resources:", -1, 15, 73, 72, 8
LTEXT "", 701, 90, 12, 105, 8
LTEXT "", 702, 90, 23, 105, 8
LTEXT "", 703, 90, 34, 105, 8
LTEXT "", 704, 90, 45, 105, 8
LTEXT "", 705, 90, 62, 105, 8
LTEXT "", 706, 90, 73, 105, 8
EXT_INFO DIALOG LOADONCALL MOVEABLE DISCARDABLE 76, 55, 207, 111
STYLE DS_MODALFRAME ~ WS
POPUP , WS CAPTION ( WS
SYSMENU
_ Y
CAPTION "More About CMCCODE
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 2, 81, 93, 45, 13
CONTROL "", -1, "STATIC", SS
BLACKFRAME
_
WS_CHILD , WS_VISIBLE, 6, 6, l95, 81
CONTROL "", -l, "STATIC", SS_BLACKFRAME
WS CHILD ~ WS VISIBLE, 13, 57, 180. 1
LTEXT "CMCCODE Version:", -1, 15, 12, 72, 8
LTEXT "WCodeDLL Version:", -1, 15, 23, 72, 8
LTEXT "HookDLL Version:", -1, 15, 34, 72, 8
LTEXT "Release Date:", -1, 15, 45, 72, 8
LTEXT "Memory:", -1, 15, 62, 72, 6
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
41
LTEXT "System Resources:", -1, 15, 73, 72, 8
LTEXT "", 7d1, 90, 12, 105, 8
LTEXT "", 702, 90, 23, 105, 8
LTEXT "", 703, 90, 34, 105, 8
LTEXT "", 704, 90, 45, 105, 8
LTEXT "", 705, 90, 62, 105, 8
LTEXT "", 706, 90, 73, 105, 8
FILE_0_ZIP DIALOG LOADONCALL MOVEABLE DISCARDABLE 40,20,202,130
STYLE DS_MODALFRAME ~ WS OVERLAPPED ~ WS-CAPTION ~ WS SYSMENU
FONT 8, "Helv"
EDITTEXT 100, 42, 6) 98, 12, ES AUTOHSCROLL ~ WS BORDER
WS TABSTOP
DEFPUSHBUTTON "OK", 1, 146, 5, 50, 14
LISTBOX 102, 6, 44, 64, 82, LBS_STANDARD
LBS_MULTIPLESEL I LBS_EXTENDEDSEL ~ WS TABSTOP
LISTBOX 103, 76, 44, 64, 82, LBS_STANDARD ~ WS TABSTOP
PUSHBUTTON "&A11 Files", 104, 146, 45, 50, 14
PUSHBUTTON " » &Clipboard", 105, 146, 63, 50, 14
CHECKBOX "&ZIP First", 106, l46, 81, 51, 12,
BS_AUTOCHECKBOX ~ WS_TABSTOP
PUSHBUTTON "Cancel", 2, 146, 23, 50, 14
LTEXT "File&name:", -1, 6, 8, 36, 10
LTEXT "Directory:", -1, 6, 20, 36, 10
LTEXT "", 101, 42, 20, 98, 10
LTEXT "&Files:", -1, 6, 32, 64, 10
LTEXT "&Directories:", -1, 76, 32, 64, 10
PUSHBUTTON "&Options...", 107, 146, 105, 50, 14
FILE_OPEN DIALOG LOADONCALL MOVEABLE DISCARDABLE 40,20,202,130
STYLE DS_MODALFRAME ~ WS OVERLAPPED ~ WS_CAPTION I WS_SYSMENU
FONT 8, "Helv"
EDITTEXT 100, 42, 6, 98, 12, ES-AUTOHSCROLL ~ WS BORDER
WS_TABSTOP
DEFPUSHBUTTON "OK", 1) 146, 5, 50, 14
LISTBOX 102, 6, 44, 64, 82, LBS_.STANDARD ( WS_TABSTOP
LISTBOX 103, 76, 44, 64, 82, LBS._STANDARD ~ WS_TABSTOP
PUSHBUTTON "Cancel", 2, l46, 23, 50, 14
LTEXT "File&name:", -1, 6, 8, 36, 10
LTEXT "Directory:", -1, 6, 20, 36, 10
LTEXT "", 101, 42, 20, 98, 10
LTEXT "&Files:", -1, 6, 32, 64, :10
LTEXT "&Directories:", -1, 76, 3:Z, 64, 10
HEADER_TYPE DIALOG LOADONCALL MO'JEABLE DISCARDABLE 93,54,1l1,81
STYLE DS_MODALFRAME t WS POPUP ~ WS CAPTION ~ WS SYSMENU
CAPTION "Header Type
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 6, 63, 45,, 13
RADIOBUTTON "&Wincode Standard", 224, 12, 10, 87, 12,
BS AUTORADIOBUTTON ~ WS GROZJP ~ WS TABSTOP
SUBSTITUTE SfIEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98!Z4037 PCT/US97/20929
42
RADIOBUTTON "&MIME Conformant", 225, 12, 25, 87, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
PUSHBUTTON "Cancel", 2, 60, 63, 45, 13
GROUPBOX "", 106, 6, 2, 99, 54, BS_GROUPBOX
CHECKBOX "&Guess Content-Type", 226, 12, 40, 87, 12,
BS AUTOCHECKBOX , WS TABSTOP
HOOK_APP DIALOG LOADONCALL MOVEABLE DISCARDABLE 10,74,277,117
STYLE DS-MODALFRAME ~ WS POPUP ~ WS, CAPTION ~ WS SYSMENU
CAPTION "Hook Application Options
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 222, 9, 45, 13
EDITTEXT 901, 75, 6, l35, 12, ES_AUTOHSCROLL
WS_BORDER ~ WS_TABSTOP
EDITTEXT 902, 75, 24, 120, 12, ES_AUTOHSCROLL
WS_BORDER ~ WS_TABSTOP
PUSHBUTTON "?", 903, 198, 24, 12, 13
CHECKBOX "&Case Sensitive Application Name", 904,80,45,126,12,
BS_AUTOCHECKBOX I WS_TABSTOP
CHECKBOX "&Prompt for Application on Hook", 905,80,57,126,12,
BS_AUTOCHECKBOX ~ WS_TABSTOP
CHECKBOX "H&ide Wincode when Hooked", 906,80,69,126,12,
BS_AUTOCHECKBOX ~ WS_TABSTOP
CHECKBOX "&Auto-Hook Wincode on Startup", 907,80,81,126,12,
BS_AUTOCHECKBOX ~ WS_TABSTOP
PUSHBUTTON "&Tune...", 910, 222, 97, 45, 13
PUSHBUTTON "Cancel", 2, 222, 27, 45, 13
PUSHBUTTON "&Default", 908, 222, 45, 45, 13
PUSHBUTTON "&Help", 909, 222, 63, 45, 13
LTEXT "Application Name:", -1, 7, 10, 66, 8
LTEXT "Application Path:", -1, 7, 27, 66, 8
CONTROL "", -1, "STATIC", SS_BLACKFRAME I WS_CHILD
WS_VISIBLE, 75, 42, 135, 54
ICON "THOOK ICON", -1, 27, 69, 18, 20
LTEXT "Advanced Options:", -1, 7, 45, 66, 8
LTEXT "If you are having problems Hooking an application,
try this ---->", -1, 7, l00, 213, 8
HOOK TUNE DIALOG LOADONCALL MOVEABLE DISCARDABLE 81,74,151,96
STYLE DS_MODALFRAME ~ WS-POPUP ~ WS-CAPTION ~ WS,SYSMENU
CAPTION "Hook Tuning"
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", i, 24, 78, 45, 13
CHECKBOX "&Create Window List on Hook", 911,12,11,126,12,
BS_AUTOCHECKBOX ~ WS TABSTOP
CHECKBOX "&Skip Opening Window", 912,12,25,90,12,
BS_AUTOCHECKBOX ~ WS_TABSTOP
EDITTEXT 9l3, 108, 39, 30, 12
COMBOBOX 914, 108, 54, 30, 39, CBS_DROPDOWNLIST ~ WS TABSTOP
PUSHBUTTON "Cancel", 2, 81, 78, 45, 13
CONTROL "", -1, "STATIC", SS_BLACKFRAME ~ WS CHILD
WS VISIBLE, 6, 6, 138, 66
SUBSTITUTE SHEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98l24037 PCT/US97/20929
43
LTEXT "Set Hook Delay (seconds):", -1, 12, 42, 93, 8
LTEXT "Set Hook Menu Range:", -1, 12, 5?, 93, 8
MEMORY_SWAP DIALOG LOADONCALL MOVEABLE DISCARDABLE 63,65,232,66
STYLE DS_MODALFRAME ~ WS-POPUP ~ WS_CAPTION I WS-SYSMENU
CAPTION "CMCCODE - Memory Swap"
FONT 8, "MS Sans Serif"
EDITTEXT 101, 37, 30, 28, 12, ES._AUTOHSCROLL ~ WS BORDER
WS_TABSTOP
DEFPUSHBUTTON "OK", 1, 12, 48, 45, 13
PUSHBUTTON "Cancel", 2, 75, 48, 45, 13
CTEXT "Enter a memory allocation swap", -1, 6, 7, 120, 9
CTEXT "value (range + 256KB to 16MB):", -l, 6, 16, 120, 9
LTEXT "KBytes", -1, 68, 32, 27, 8
OP TOOLBAR DIALOG LOADONCALL MOVEABLE DISCARDABLE 102, 57,
104, 112
STYLE WS_POPUP ! WS_VISIBLE ~ WS,-CAPTION I WS-SYSMENU
CAPTION "Options Toolbar"
FONT 8, "MS Sans Serif"
PUSHBUTTON "&Encode...", 1001, -1, 0, l05, 14
PUSHBUTTON "&Decode...", 1002, -1, 14, 105, 14
PUSHBUTTON "&Wincode...", l003, -1, 28, 105, 14
PUSHBUTTON "W&insort...", 1004, -1, 42, Z05, 14
PUSHBUTTON "&Viewer...", 1005, -1, 56, 105, 14
PUSHBUTTON "&ZIP/UNZIP...", 1006, -1, 70, 105, 14
PUSHBUTTON "Hook App...", l007, 84, 105, 14
PUSHBUTTON "E&xit Toolbar", 2, -1, 98, 105, 14
ORDER_HELP DIALOG LOADONCALL MOVABLE DISCARDABLE
61, 21, 228, 258
STYLE DS_MODALFRAME ~ WS_POPUP ~ WS-CAPTION ~ WS SYSMENU
CAPTION "Ordering the Help file
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "THANKS!", 2, 77, 240, 75, 13
LTEXT "To order the Wincode Help file, send $5.00
(U.S. Dollars) to: -1, 13, ~~, 204, 8
CTEXT "CMC Interactive\xAE", -1, 58, 21, 114, 8
CTEXT "8 S. Michigan Ave.", -1, 58, 29, 114, 8
CTEXT "Suite 2003", -1, 58, 37, :L14, 8
CTEXT '~Chicago, IL 60606", -1, 5l3, 45, 114, 8
LTEXT "This price and address arE~ guaranteed until 6/1/95.
If you", -1, 13, 57, 204, 8
LTEXT "wish to obtain the Help file after this date,
please e-mail", -l, 13, 65, 204, 8
LTEXT "first for updated information. Make checks payable to:",
-1, 13, 73, 204, 8
CTEXT "CMC Interactive", -1, 13, 83, 204, 8
LTEXT "By ordering Help, you obtain the following:",
-1, 13, 112, 204, 8
SUBSTITUTE StiEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98/24037 PCTlU597i20929
44
LTEXT " 1)The most recent version of Wincode with the Help
file", -1, 13, 122, 204, 8
LTEXT " 2)Directly e-mailed pre-releases of future
versions of", -1, 13, 130, 204, 8
LTEXT " Wincode and the Help file", -1,13,l38,204,8
LTEXT " 3)E-mail (only) technical support", -1,I3,146,204,8
LTEXT "All files will be ELECTRONICALLY MAILED to you.
If you" ,
-1, 13, 162, 204, 8
LTEXT "wish to have something sent through the US
Postal service,",
-1, 13, 170, 204, 8
LTEXT "please include a Self-Addressed-STAMPED Disk Mailer AND",
-1, 13, 178, 204, 8
LTEXT "Disk with your order. Mufti-User pricing is available.",
-1, 13, 186, 204, 8
LTEXT " Main Internet Address: cmcinterQsuba.com",
-1, 13, 203, 204, 8
LTEXT " America Online: cmcinterC~aol.com",
-1, 13, 214, 204, 8
CONTROL "", -1, "STATIC", SS_BLACKFRAME ~ WS CHILD
WS_VISIBLE, 6, 6, 216, 228
ICON "MAIN ICON", -1, 25, 27, 18, 20, SS_ICON ~ WS_GROUP
ICON "ORDER_HELP_ICON",-1,187,27,18,20, SS_ICON ~ WS GROUP
CTEXT "PLEASE" include a LEGIBLE E-MAIL address withr
a11 orders.",
-1, 13, 98) 204, 8
CONTROL "", -1, "STATIC", SS_BLACKFRAME ~ WS-CHILD
WS_VISIBLE, 16, 158, 198, 1
CONTROL "", -1, "STATIC", SS_BLACKFRAME ~ WS CHILD
WS VISIBLE, 16, 93, 198, 1
CONTROL"", -1, "STATIC", SS_BLACKFRAME ~ WS-CHILD
WS_VISIBLE, 16, 109, 198, 1
SEQUENCE DIALOG LOADONCALL MOVEABLE DISCARDABLE 27,37,237,147
STYLE DS_MODALFRAME ~ WS_POPUP~ WS CAPTION , WS_SYSMENU
CAPTION "Concatenate Files
FONT 8, "MS Sans Serif"
EDITTEXT 750, 6, 16, 168, 12
DEFPUSHBUTTON "OK", 1, 183, 9, 45, 13
PUSHBUTTON "-> &Encode", 756, 183, 67, 45, 13
PUSHBUTTON "-> &Decode", 757, 183, 85, 45, 13
LISTBOX 751, 6, 44, 64, 82, LBS_STANDARD ~ WS TABSTOP
PUSHBUTTON "->", 752, 7?, 65, 18, 13
PUSHBUTTON "<-", 753, 77, 88, 18, 13
LISTBOX 754, 111, 44, 64, 82, LBS_STANDARD ~ WS TABSTOP
PUSHBUTTON "Cancel", 2, 183, 27, 45, 13
PUSHBUTTON "&Help", 755, 183, 45, 45, 13
LTEXT "Concatenate all files into:", -1, 6, 6, 87, 8
LTEXT "Files:", -1, 6, 33, 63, 8
LTEXT "Sequence:", -1, 1l1, 33, 63, 8
CTEXT "1", -1, 99, 45, 10, 8
CTEXT "2", -1, 99, 53, 10, 8
CTEXT "3", -1, 99, 61, 10, 8
CTEXT "4", -1, 99, 69, 10, 8
CTEXT "5", -1, 99, 77, 10, 8
SUBSTITUTE SHEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
CTEXT "6", -l, 99, 85) 10, 8
CTEXT "7", -1, 99, 93, 10, 8
CTEXT "8", -1, 99, 101, 10, 8
CTEXT "9", -1, 99, 109, 10, 8
RTEXT "...", -1, 99, 117, 10, 8
LTEXT "Status:", -l, 6, 132, 27) 8
LTEXT "", 758, 36, 132, 195, 8
PUSHBUTTON ">>", 759, 77, 45, lEt, 13
PUSHBUTTON "<<", 760, 77, 109, 7.8, 13
LTEXT "Count:", -1, 183, 118, 29:, 8
LTEXT "", 761, 210, 1I8, 21, 8
LTEXT "File", -1, 183, 109, 48, 8
WIN CONFIG DIALOG LOADONCALL MOVEABLE DISCARDABLE
25, 21, 267, 186
STYLE DS_MODALFR.AME ~ WS_POPUP ! WS-CAPTION ~ WS SYSMENU
CAPTION "CMCCODE Options"
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", l, 213, 9, 45, 13
CHECKBOX "C&reate Report File", 401, 12, 9, 78, 12,
BS_AUTOCHECKBOX ' WS_TABSTO~P
CHECKBOX "St&art as Icon", 402, 12, 23, 78, 12,
BS_AUTOCHECKBOX ~ WS TABSTOP
CHECKBOX "Auto File & Overwrite", 403, 12, 37, 78, 12,
BS_AUTOCHECKBOX j WS_TABSTOP
CHECKBOX "A&lways On Top", 405, 93, 9, 75, 12,
BS_AUTOCHECKBOX ~ WS_TABSTOP
CHECKBOX "Close When Do&ne", 406, 93, 23, 75, 12,
BS-AUTOCHECKBOX ~ WS_TABSTOP
CHECKBOX "&Memory Swapping", 407, 93, 37, 75, 12
CHECKBOX "W&insort First", 408, 93, 51, 75, 12,
BS_AUTOCHECKBOX ~ WS_TABSTOP
COMBOBOX 409, 117, 72, 54, 39, CBS_DROPDOWNLIST
WS_VSCROLL ~ WS_TABSTOP
COMBOBOX 410, 117, 87, 54, 39, C.BS_DROPDOWNLIST
WS VSCROLL ~ WS TABSTOP
EDITTEXT 411, 12, 114, I41, 9, E~S_AUTOHSCROLL
NOT WS_BORDER ( WS_TABSTOP
PUSHBUTTON "?", 412, 156, 110, 12, 13
EDITTEXT 413, 15, 156, 148, 21, :ES MULTILINE
WS_BORDER ~ WS_VSCROLL ~ WS TABSTOP
RADIOBUTTON "&Wincode Default", ~~14, 183, 94, 69, 12,
BS_AUTORADIOBUTTON ~ WS_GRO1JP ~ WS_TABSTOP
RADIOBUTTON "&Custom:", 415, 183, 109, 39, 12,
BS_AUTORADIOBUTTON ~ WS_TAB3TOP
EDITTEXT 416, 224, 109, 30, 12
RADIOBUTTON "&Standard (Default)", 417, 183, 146, 75, 12,
BS_AUTORADIOBUTTON ( WS_GROIJP ( WS_TABSTOP
RADIOBUTTON "Cus&tom:", 418, 183,, 163, 39, 12,
BS_AUTORADIOBUTTON ~ WS_TABSTOP
EDITTEXT 419, 224, 163, 30, 12
CHECKBOX "DOS Attri&butes", 404, 12, 51, 78, 12,
BS_AUTOCHECKBOX ! WS TABSTOF?
PUSHBUTTON "Cancel", 2, 213, 27, 45, 13
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
46
PUSHBUTTON "Defaults", 420, 213, 45, 45, 13
PUSHBUTTON "&Help", 421, 213, 63, 45, 13
GROUPBOX "Working Directory", 103, 6, 102, l65, 24,
BS_GROUPBOX
LTEXT "Enter sixty-four valid ASCII characters.",
-1, 15, 145, l32, 9
CONTROL "", -1, "STATIC", SS_BLACKFRAME ~ WS_CHILD
WS_VISIBLE, 6, 6, 165, 60
GROUPBOX "Mode", 101, 177, 81, 84, 45, BS_GROUPBOX
GROUPBOX "Line Length", 102, 177, l30, 84, 51, BS_GROUPBOX
GROUPBOX "Code Table", -1, 6, 130, 165, 51, BS_GROUPBOX
LTEXT "Interactive Mode Setting:", -1, 6, 90, 90, 8
LTEXT "Sound Effects Setting:", -1, 6, 76, 81, 8
WNS_CONFIG DIALOG LOADONCALL MOVEABLE DISCARDABLE
22, 38, 255, 159
STYLE DS_MODALFRAME ~ WS_POPUP ~ WS-CAPTION ~ WS_SYSMENU
CAPTION "Winsort Options"
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 201, 9, 45, 13
EDITTEXT 501, 42, 19, 126, 12, ES_AUTOHSCROLL
WS_BORDER ~ WS_TABSTOP
EDITTEXT 502, 42, 35, 126, 12, ES_AUTOHSCROLL
WS_BORDER ~ WS_TABSTOP
CHECKBOX "&Use Custom BEGIN/END", 503, 12, 54, 123, 12,
BS_AUTOCHECKBOX ~ WS TABSTOP
EDITTEXT 504, 12, 93, 117, 9, ES_AUTOHSCROLL
NOT WS_BORDER ~ WS_TABSTOP
PUSHBUTTON "?", 505, 132, 89, 12, 13
EDITTEXT 506, 12, 12l, 117, 9, ES_AUTOHSCROLL
NOT WS_BORDER ~ WS_TABSTOP
PUSHBUTTON "?", 507, 132, 117, 12, 13
CHECKBOX "Execute Winsort in Silent & Mode",
S08, 9, 140, 138, 12, BS_AUTOCHECKBOX ~ WS TABSTOP
RADIOBUTTON "&Standard Winsort", 509, 159, 95,
75, 12, BS_AUTOR.ADIOBUTTON ~ WS_GROUP ~ WS~TABSTOP
RADIOBUTTON "Flush &Left ONLY", 510, 159, 110,
75, 12, BS_AUTORADIOBUTTON ~ WS_TABSTOP
RADIOBUTTON "Flush Left and Sort", 5l1, 159, 125,
75, 12, BS_AUTORADIOBUTTON I WS,TABSTOP
EDITTEXT 512, 216, l39, 24, 12
PUSHBUTTON "Cancel", 2, 201, 27, 45, 13
PUSHBUTTON "&Defaults", 513, 201, 45, 45, 13
PUSHBUTTON "&Help", 514, 201, 63, 45, 13
LTEXT "END:", -1, 12, 38, 24, 8
LTEXT "BEGIN:", -1, 12, 22, 27, 8
GROUPBOX "Sort Options", 101, 153, 81, 96, 72, BS_GROUPBOX
GROUPBOX "Custom BEGIN/END", -1, 6, 6, 168, 66, BS_GROUPBOX
GROUPBOX "Winsort Executable", 102, 6, 81, 141, 24, BS_GROUPBOX
GROUPBOX "Winsort Directory", 103, 6, 109, 141, 24, BS GROUPBOX
LTEXT "Flush # Chars:", -1, 159, 141, 54, 8
Z UZ CONFIG DIALOG LOADONCALL MOVEABLE DISCARDABLE
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
4 '7
27, 24, 240, 151
STYLE DS_MODALFRAME ~ WS'POPUP ~ WS CAPTION ( WS SYSMENU
CAPTION "ZIP/UNZIP Options"
FONT 8, "MS Sans Serif"
DEFPUSHBUTTON "OK", 1, 186, 9, 45, 13
EDITTEXT 601, 69, 6, 90, 12, ES_AUTOHSCROLL ~ WS_BORDER
WS_TABSTOP
PUSHBUTTON "?", 602, 162, 5, 12, 13
EDITTEXT 603, 69, 23, 105, 12, ES_AUTOHSCROLL ~ WS_BORDER
WS_TABSTOP
EDITTEXT 604, 69, 39, 90, 12, ES AUTOHSCROLL ~ WS BORDER
' WS TABSTOP
PUSHBUTTON "?", 605, l62, 38, 12, 13
EDITTEXT 606, 69, 55, 105, 12, ES_AUTOHSCROLL ~ BORDER
WS
WS_TABSTOP
EDITTEXT 607, 102, 71, 33, 12
RADIOBUTTON "Def&ault to location of input file", 608, 12,
100, 132, 12, BS_AUTORADIOBUTTON ~ WS WS TABSTOP
GROUP ~
_
RADIOBUTTON "User select &on UNZIP", 609, 12,
114) 132, 12, BS_AUTORADIO.BUTTON 4 WS TABSTOP
RADIOBUTTON "&Set:", 610, 12, 128, 27, 12,
AUTORADIOBUTTON f WS_TABSTOP
BS
_
EDITTEXT 611, 42, 128, 99, 12, ES AUTOHSCROLL
WS_BORDER i WS_TABSTOP
PUSHBUTTON "?", 612, 144, 128, 12, 13
RADIOBUTTON "&Normal", 613, 171, 100, 57, 12,
BS
AUTORADIOBUTTON ~ WS
GRnUP ~ WS
TABSTOP
_
_
_
RADIOBUTTON "&Minimized", 614, 171, 114, 57, 12,
BS
AUTORADIOBUTTON , WS
TA:BSTOP
_
_
RADIOBUTTON "Hidd&en", 615, 171, 128, 57, 12,
BS
AUTORADIOBUTTON ~ WS
TA:BSTOP
_
_
PUSHBUTTON "Cancel", 2, 186, 27, 45, 13
PUSHBUTTON "&Defaults", 6l6, 186, 45, 45, 13
PUSHBUTTON "&Help", 617, 186, 6:3, 45, 13
GROUPBOX "UNZIPped Files) Dire~~tory", 10l, 6, 87, 153, 57,
BS
GROUPBOX
_ GROUPBOX
GROUPBOX "Shaw Options", 102, 165, 87, 69, 57, BS
LTEXT "ZIP Filename:", -1, 6, 1~~, 57, 8 -
LTEXT "ZIP Param(s):", -l, &, 2n, 57, 8
LTEXT "UNZIP Filename:", -1, 6, 42, 60, 8
LTEXT "UNZIP Param(s):", -1, 6, 58, 60, 8
LTEXT "Extension for ZIPped Files:", -1, 6, 74, , 8
93
ZIP_NAME DIALOG LOADONCALL MOVEi~.BLE DISCARDABLE
35, 31, 132, 60
STYLE DS
MODALFRAME ~ WS POPUP ( WS
CAPTION ~ WS
SYSMENU
_
-
_
CAPTION "CMCCODE - ZIP Filename,
FONT 8, "MS Sans Serif"
EDITTEXT 101, 31, 23, 51, 12, ES_AUTOHSCROLL ~ WS_ BORDER
WS
TABSTOP
_
DEFPUSHBUTTON "OK", 1, 12, 42, 45, 13
PUSHBUTTON "Cancel", 2, 75, 42, 45, 13
CTEXT "Enter a filename for the ZIP archive:", -1, 4, 7, 123,
9
CA 02271012 1999-05-OS
WO 98/24037 PCT/US97/20929
48
LTEXT "", 102, 84, 25, 24, 8
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
101, "Encode a data file..."
102, "Decode a data file..."
103, "Concatenate multiple files into a single file
(specific ordering)..."
104, "View a Wincode Report file..."
105, "Clean Wincode directories by deleting files..."
106, "Set Encode options..."
107, "Set Decode options..."
108, "Set General Wincode options..."
109, "Set Winsort options..."
110, "Select a Report File viewer..."
111, "Set PKZIP/UNZIP options..."
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
112, "Set the Application Hook options..."
113, "Wincode Help Contents..."
114, "Help file Keyword Search..."
1l5, "Help on using Windows Help files..."
116, "Wincode Internet Frequency Asked Questions..."
117, "Legal Copyrights for files..."
118, "Information on ordering the Wincode Help file..."
119, "Version and Author information..."
121, "Set Wincode Interactive Drag & Drop Mode..."
122, "Hook the Wincode Menu into a selected application..."
123, "Select the Options Toolbar to configure Wincode..."
124, "Exit the Wincode program..."
125, "Stop the current Operation..."
126, "Quit the entire Operation..."
l27, "Encode, Decode, Exit..."
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
128, "Concat, View, Clean, Drag&Drop Mode, Hook..."
Z29, "Encode, Decode, Wincodt, Winsort, Viewer,
PKZIP/UNZIP, Hook App..."
130, "Help and related information..."
CLEAN DOWN ICON LOADONCALL MOVEABLE DISCARDABLE
COPYRIGHT - 1996 PLANET GRAPHICS, INC.
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
4'.~
The following is a second software listing for the
catcher program of the invention.
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
//__________~_____________________________________________________________
//
//
// File: NPSHELL.CPP
//
//
// Advanced Features:
// + Secured trigger/key-access processes
// + Uncrippling Media files
//
// Copyright ~ l996-l997 HyperLOCK Technologies,
Inc.
// All Rights Reserved.
//
//-________________________________________________________________________
//
// HyperCD
//
II The architecture of HyperCD allows for
// authorized and secure rendering of crippled
multimedia files
// from the fastest link. Such media may reside
on a HyperCD
// CD-ROM/DVD-ROM, a server through regular phone
line,
// broad-band fiber optics or satelite for speedy
access.
// The HyperCD media files are protected by crippling
the
// media. Only server authorized user can obtain
// trigger/keys/missing pieces from the server
to unlock the
// HyperCD media.
l/
// See Patent Application for details.
//
//_________________________________________________________________________
#ifndef VYIN32
#define~_WIN32
#endif
#ifndef _NPAPI_H_
#include "npapi. h"
#include "plgwnd.h"
#include "CHyperCD.h"
#endif
#include <mmsystem.h>
#include <qtw.h>
#include <time.h>
#include <string.h>
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
51
#include <io.h>
#include <fcnti.h>
#include <sys/stat.h>
//_____________________________________________
_______________________________________
// NPP Initialize:
//-_____
______________________________________,.______________________________________
NPError NPP Initialize(void)
DEBUG_TEST("NPP Initialize"')
return NPERR NO ERROR;
//_____________________________________________..______________________________
________
// NPP Shutdown:
//-_____
______________________________________..______________________________________
void NPP Shutdown(void)
DEBUG TEST("NPP Shutdown")
return;
//-
____________________________________________.._________________________________
_____
// NPP New:
//______
______________________________________..______________________________________
NPError NP_LOADDS
NPP New(NPMIMEType pluginType,
NPP instance,
uint 16 mode,
int 16 argc,
char* argn[],
char* argv[],
NPSavedData* saved)
DEBUG TEST("NPP New")
if (instance = NULL)
return NPERR,INVALID INSTANCE ERROR;
instance->pdata = NPN_MemAlloc(si:aeof(Plu~inInstance));
PluginInstance* This = {Plu~inInstance*) instance->pdata;
if (This != NULL)
This_>window = NULL;
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
52
This->cHypercd = new CHyperCD();
This->mode = mode;
This->bAutoStart = FALSE;
This->bLoop = FALSE;
strcpy( This->InformationField,"HyperCD");
int idx;
STRING sSYSFILE;
strcpy(sSYSFILE,SYSFILE);
char *pl,*p2;
STRING szArg, szValue,cd title;
for ( idx =0; idx<argc; idx++) {
strcpy(szArg, argn[idx]);
strcpy(szValue, argv[idx]);
// Check web tags and set HyperCD flags
SetHyperCDFlags(szArg, szValue);
if~bDemandHyperCD)
goto parsing-embed tags;
for ( idx =0; idx<argc; idx++) {
strcpy(szArg, argn[idx]);
strcpy(szValue, argv[idx]);
ParseHyperCDTags 1 (szArg,szValue);
i~!bDemandHyperCD)
SysIO(sSYSFILE);
for (idx =0; idx<argc; idx++)
{
strcpy(szArg, argn[idx]);
strcpy(szValue, argv[idx]);
ParseHyperCDTags2(szArg,szValue);
]
parsing-embed tags:
instance->pdata = This;
return NPERR NO ERROR;
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
53
else
return NPERR OUT OF MEMOIEtY ERROR;
static void UnSubclass(Plugininstance *'Chis)
WNDPROC OIdWndProc;
WNDPROC* lplpfn = This->window->GetSuperWndProcAddr();
DEBUG TEST("UnSubciass")
if ( !*lplpfn )
{
AS SERT(0);
return;
)
/! Set the original window procedure
OIdWndProc = (WNDPROC):: SetWindowLong( This->window->m hWnd,
GWL WNDPROC, (LOrJG) *lplpfn );
// A subclassed window's procedure is always AfxWndProc.
// If this is not TRUE, then it's not a subclassed window.
if ( OIdWndProc != A&WndProc )
ASSERT(0);
static void KillHyperCDWindow(PluginI:nstance *This)
{
DEBUG TEST("KillHyperCDWindow")
if (This->cHypercd) {
This->cHypercd->Close();
delete This->cHypercd;
This->cHypercd = NULL;
CleanUpHyperCD();
UnSubclass(This);
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
54
if (This->window) {
This->window->Detach();
delete This->window;
This->window = NULL;
//-
_______________________________________________________________________________
____
// NPP Destroy:
//-
_______________________________________________________________________________
____
NPError NP_LOADDS
NPP Destroy(NPP instance, NPSavedData** save)
if (instance = NULL)
return NPERR_INVALID_INSTANCE ERROR;
PluginInstance* This = (PluginInstance*) instance->pdata;
//
// Note: If desired, call NP_MemAlloc to create a
// NPSavedData structure containing any state information
// that you want restored if this plugin instance is later
// recreated.
//
if (This != NULL)
KillHyperCDWindow(This);
NPN MemFree(instance->pdata);
return NPERR NO ERROR;
//__-
_______________________________________________________________________________
__
// NPP SetWindow:
//-_____
_____________________________________________________________________________
NPError NP LOADDS
NPP-SetWindow(NPP instance, NPWindow* np window)
CA 02271012 1999-OS-OS
WO 98/Z4037 PCT/US97/20929
DEBUG TEST("NPP SetWindow")
if (instance --- NULL)
return NPERR INVALID INSTA:LVCE ERROR;
PluginInstance* This = (PluginInstance*) instance->pdata;
//
// Note: Before setting fiWindow to point to the
// new window, you may wish to compare the new window
// info to the previous window (if any) to note window
// size changes, etc.
//
if (!np window)
return- 1VPERR-GENERIC ERROR;
if (!instance)
return NPERR IIWA,LID INSTANCE ERROR;
if (!This)
return NPERR GENERIC ERROR;
if (inp window->window && !This->window) // spurious entry
return- NPERR NO~ERROR;
if (!np window->window && This->window)
{ // window went away
KillHyperCDWindow(This);
return NPERR NO ERROR;
) _ _
if (!This->window && np window->vvindow)
{ // First time in -- no window created by plugin yet
This->window = (CPluginWindow '") new CPluginWindow();
if (!This->window->SubclassWindow((HVVND)np_window->window))
{
MessageBox(NULL,"SubclassWindow Failed","HyperCD",MB OK);
return NPERR GENERIC ERROR;
) _
// Save This pointer in window class; member variable..this lets the
// window message handling have a<;cess to the data pointer easily
This->window->StoreData(This);
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97120929
56
// resize or moved window (or newly created)
This->window->InvalidateRect(NULL);
This->window->UpdateWindow();
return NPERR NO ERROR;
//_____________________________________________________________________________
_______
// NPP NewStream:
//-_____
_____________________________________________________________________________
NPError NP_LOADDS
NPP_NewStream(NPP instance,
NPMIIVVlEType type,
NPStream *stream,
NPBooI seekable,
uintl6 *stype)
DEBUG TEST("NPP NewStream")
if (instance = NULL)
return NPERR_INVALID INSTANCE_ERROR;
PluginInstance* This = (PluginInstance*) instance->pdata;
* stype = NP-ASFILE;
return NPERR NO ERROR;
int32 STREAMBLTFSIZE = OXOFFFFFFF; // If we are reading from a file in
NPAsFile
// mode so we can take any size stream in our
// write call (since we ignore it)
//_____________________________________________________________________________
_______
// NPP WriteReady:
//-
_______________________________________________________________________________
___
int32 NP LOADDS
NPP WriteReady(NPP instance, NPStream *stream)
CA 02271012 1999-OS-OS
WO 98/24037 PCT/L1S97I20929
57
DEBUG TEST("NPP WriteReady")
if (instance != NULL)
PluginInstance* This = (PluginInstance*) instance->pdata;
)
return STREAMBUFSIZE; // Number of bytes ready to accept in
NPP Write()
//-
_______________________________________________________________________________
___
// NPP_Write:
//______
_____________________________________________________________________________
int32 NP LOADDS
NPP Write(NPP instance, NPStream *stream, int32 offset, int32 len, void
*buffer)
DEBUG TEST("NPP Write")
if (instance != NULL)
PluginInstance* This = (PluginInstance*) instance->pdata;
return len; // The number of bytes accepted
//-
_____________________________________________..________________________________
_____
// NPP DestroyStream:
//_-
__________________________________________..___________________________________
__
NPError NP_LOADDS
NPP DestroyStream(NPP instance, NPStream *stream, NPError reason)
( _
DEBUG TEST("NPP DestroyStream")
if (instance = NULL)
return NPERR_INVALID INSTAI~JCE_ERROR;
PluginInstance* This = (PluginInstance~*) instance->pdata;
CA 02271012 1999-OS-OS
WO 98I24037 PCT/IJS97/20929
58
return NPERR-NO ERROR;
//-
_______________________________________________________________________________
____
//
i/ HCD To Server
// -
// This module is called by various components of HyperCD client so#tware
// to initiate communications with server(s).
// Objects will be exchanged during such process.
//
!/--
_______________________________________________________________________________
___
HCDError HCD To Server(HCDOBJECTTYPE InObject, HCDOBJECTTYPE
OutObject, HCDCOMMTYPE CommType )
HCDError HCDReturnErr=HCDOK;
// retrieve objects from server and assigned to OutObject
// this client is identified by InObject
// NPN_ methods can be used.
if(CommType = HCD GET)
HCDReturnErr=HCD GetURL(InObject,OutObject);
// Send info to server
else if (CommType = HCD_POST)
HCDReturnErr=HCD PostURL(InObject,OutObject);
else
HCDReturnErr=HCD DefaultComm(InObject,OutObject);
return HCDReturnErr;
//-
_______________________________________________________________________________
___
// ObtainKey:
//-
_______________________________________________________________________________
___
HCDError ObtainKey{KeyObject *Object, char *pszTrigger)
TriggerObject Trigger;
//**********************************************************
***
//
CA 02271012 1999-OS-OS
WO 98I24037 PCTIITS97/20929
59
// Decrypt/decode trigger to obtain info on
// server id, communication keys,
// time-stamp, etc that make the communication
// secure and unique so that intercepted
// keys will not work on PIRATED SERVER
// but fees/usage info can still be charged/monitored
// on PIRATED HyperCD's.
//
//**********************************************************
***
Trigger = DecryptTrigger(pszTri~;ger);
if(IsValidTrigger(TestTrigger))
return HCDERROR UNAUTHORIZED ACCESS;
//**********************************************************
***
//
// Directly communicate with the server
// to obtain CRITICAL DA7"A - the server approved missing
// pieces.
//
// The CRITICAL DATA includes, but not limited to,
// the HEADER, jumptable, parts of the data.
// The HEADER here includes organization
// information which specifies where the sub data chunks are,
// what leading keywords area what encryption is
// performed on sub data chunks, and what access level
I/ numbers are derived from a formula used to characterize
// a set of data.
//
// This component is also called the Catcher that
// captures the CRITICAL DATA.
//
//**********************************************************
***
NewObject = new KeyObject;
// Initiate a process to retrieve the missing uncrippling
// pieces to merge with the c~7ppled media file on
// HyperCD/HyperCD media server/any other convenient
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
// locations where speedy delivery is possible.
RetrieveKeys(Trigger, NewObject);
i~IsValidKeyObject(NewObject))
return HCDERROR UNAUTHORIZED ACCESS;
return HCDOK;
//-
_______________________________________________________________________________
___
// NPP StreamAsFile:
//-_____
____________________________________________________________________________
void NP LOADDS
NPP_StreamAsFile(NPP instance, NPStream *stream, const char* pszTrigger)
if (instance = NULL)
return;
PluginInstance* This = (PluginInstance*) instance->pdata;
if (!This->cHypercd)
return;
//**********************************************************
***
//
// Direct Access to obtain missing map/object/keys
//
// This component decrypts the incoming trigger
// and then perform Secured Access by directly
// communicates with the server to obtain
// the missing critical information
// The crippled file is then being uncrippled
// and then sent to media display component
// for rendering.
//
// The incoming keys may be from several servers.
//
// The incoming keys may be of type:
// * HyperCD Triggers indicating embedded HyperCD Objects
// * Server Keys facilitating secure communication
// * Server Keys dictating what objects to expect and
// what opeartions to perform on them
// * Server Keys that's uniquely protected/encrypted
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
61
***
***
***
// to deliver missing uncrippling
// parts/objec;ts
//
//**********************************************************
ObtainKey(pszTrigger, Key, Key'Type);
if~KeyType = HyperCDKey EmbedTrigger)
PrepareEmbedHyperCD(l~ey);
return;
//*************************:*********************************
//
// After the server receives a POST request from
// end-user client software - asking the
// permission to access HyperCD media on end-user
// computer, the server checks for
// registration/access permission info on the user
// . and then setup a Secure Communication channel
// with the end-user client software
//
//*************************~k********************************
else if (KeyType = HyperCDKey_SecureComm)
(
// Save server-ID, time-st~unp, password info
SetupSecureComm(Key);
return;
else if (KeyType = HyperCDKe~y ActionPlan)
// Save info on objects/operations/jump table/etc
SetupActionPlan(Key);
return;
)
else if (KeyType = HyperCDKe~~ Objects)
// Receive objects
ReceiveObjects(Key,Object);
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
62
//**********************************************************
***
//
// Media Display Component
//
// This component uncripples the crippled files from
// HyperCD and display them. The uncrippling is achieved
// by decrypting/remapping/reorganization of the parts from
// remote server and HyperCD, which could reside on a DVD
// a server, or any media type.
//
/l**********************************************************
***
// Check if the intended file is of HCD MEDIA
ifs ObjectType(Object) = HCD_MEDIA) // mov, jpeg, avi, and
other encrypted media type
f
// Uncrippling media files from HyperCD and render the
tiles
DisplayObject(Object );
else // anything else is not valid
HyperCDError(INVALID_MEDIA TYPE);
return;
return;
else // for keys of other types, perform default processing
PerformDefaultProcessing();
return;
return;
//-
_______________________________________________________________________________
____
// NPP Print:
//-_____.
~____________________________________________________________________________
void NP LOADDS
CA 02271012 1999-OS-OS
WO 98/24037 PCT/IJS97/20929
63
NPP Print(NPP instance, NPPrint* printInfo)
DEBUG TEST("NPP Print")
if~printInfo = NULL) // trap invalid! parm
return;
if (instance != NULL)
PluginInstance* This = (PluginInstance*) instance->pdata;
if (printInfo->mode = NP FULL)
/l
// Note: If your plugin would like to take over
// printing completely when it is iin full-screen mode,
// set printInfo->pluginPrinted to~ TRUE and print your
// plugin as you see fit. If your plugin wants Netscape
/l to handle printing in this case, set printInfo->pluginPrinted
// to FALSE (the default) and do nothing. If you do want
// to handle printing yourself, pri~ntOne is true if the
// print button (as opposed to the; print menu) was clicked.
// On the Macintosh, platformPrint is a THPrint; on Windows,
// platformPrint is a structure (defined in npapi.h) containing
// the printer name, port, etc.
//
void* platformPrint = printInfo-=~print.fullPrint.platformPrint;
NPBooI printOne = printInfo->print.fullPrint.printOne;
printInfo->print.fullPrint.pluginPrinted = FALSE; // Do the default
else // If not fullscreen, we must be embedded
(
//
// Note: If your plugin is embedded, or is full-screen
// but you returned false in pluginPrinted above, NPP_Print
// will be called with mode = NI'_EMBED. The NPWindow
// in the printInfo gives the locati~an and dimensions of
// the embedded plugin on the printed page. On the Macintosh,
// platformPrint is the printer poet; on Windows, platformPrint
// is the handle to the printing device context.
//
NPWindow* printWindow = &(printInfo->print.embedPrint.window);
void* platformPrint = printInfo->print.embedPrint.platformPrint;
CA 02271012 1999-OS-OS
WO 98/24037 _ PCT/US97/20929
64
//-
_______________________________________________________________________________
____
// NPP_HandleEvent:
// Mac-only.
/!-
_______________________________________________________________________________
____
intl6 NPP HandleEvent(NPP instance, void* event)
( -
NPBooI eventHandled = FALSE;
if (instance --- NULL)
return eventHandled;
PluginInstance* This = (Plu~inInstance*) instance->pdata;
//
// Note: The "event" passed in is a Macintosh
// EventRecord*. The event.what field can be any of the
// normal Mac event types, or one of the following additional
// types defined in npapi.h: ~etFocusEvent, loseFocusEvent,
// adjustCursorEvent. The focus events inform your plu~in
// that it will become, or is no loner, the recepient of
// key events. If your plugin doesn't want to receive key
// events, return false when passed at ~etFocusEvent. The
// adjustCursorEvent is passed repeatedly when the mouse is
// over your plu~in; if your plu~in doesn't want to set the
// cursor, return false. Handle the standard Mac events as
// normal. The return value for all standard events is currently
// ignored e~ccept for the key event: for key events, only return
// true if your plu~in has handled that particular key event.
//
return eventHandled;
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
//******************************~~******************************
//
// HyperCD I/O
//
// Function:
// Remap-decrypt-decode a.nd merge the
// missing CRITICAL DATA with the CRIPPLED
// HyperCD files.
//
//*************************************************************
#include <windows.h>
#include <mmsystem.h>
#include <digitalv.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
InsertHyperCDIOModule();
RemoveHyperCDIOModule();
OPEN HYPERCD();
HDVDCALLBACK HYPERCDIO(LPFIYPERCDINFO)
{
switch (uMessage) {
case MMIOM_OPEN:
HYPERCD Open();
return 0;
case MMIOM_CLOSE:
HYPERCD Close();
return 0;
case MMIOM_READ:
HYPERCD_ReadMultipleFiles();
return (LPHYPERCDINFO.displacement);
case MMIOM_SEEK:
switch (lParam2) {
case SEEK SET: // seek to the absolute position relative to
original beginning
HYPERCD SeekSetQ;
break;
i ~ '
CA 02271012 1999-OS-OS
WO 98J24037 PCT/ITS97J20929
66
/*________________________________________________________
File: cHyperCD.cpp
Advanced Features:
This file implements a CHyperCD class which can be
used to display HyperCD movie files. This file
contains some basic code from the Netscape plugin
sdk.
#include "'stdafx.h"
#include "CHyperCD.h"
#include <mmsystem.h>
#ifdef WIN32
#include <digitalv.h>
endi f
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[ ] - _FILE_;
endif
* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
The constructor
_ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */
HyperCD: :CHyperCD ( )
mOpen = FALSE;
mPlaying = FALSE;
mDeviceID = 0;
mErrorCode = 0;
mMCIErrorCode = OL;
CHyperCd: : "'CHYperCD ( )
/* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
This function opens the HyperCD movie file for playback and
display the first frame. It requires the HyperCD movie file
name and a pointer to the window to draw into
_ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */
BOOL CHyperCD: :Open (CWnd *pWnd, CString Filename, CString Type)
DWORD RetCode;
MCI_ANIM_OPEN_PARMS OpenParms;
MCI_ANIM_WINDOW PARMS WindowParms;
// Close any device that is already open.
if (mDeviceID)
CA 02271012 1999-OS-OS
WO 98/24037 PCT/LTS97/20929
67
Close ( ) ;
// Open a device for playback.
OpenParams.dwCallback = NULL;
OpenParams.wDeviceID = O
OpenParams.lpstrDeviceType = Type;
OpenParams.lpstrAlias = "hyperCD";// can use an array
of aliases
OpenParams.dwStyle = WS~CHILD ~ WS VISIBLE;
OpenParams.hWndParent = pWnd-~m_hHlnd;
DWORD flags=(DWORD) MCI_OPEI~_ELEMENT
MCI_ANIM_OPEN_PARENT ~ MCI_ANIM_OPEN_WS;
if (Type =="AVIVideo" ~~Type=="QTWVideo"~~Type=="MPEGVideo")
flags I= MCI_OPEN_TYPE;
if (RetCode - mciSendCommand {O,MCI OPEN, flags, (DWORD)
{LPVOID) &OpenParms)
mMCIErrorCode = RetCode;
char szBuf [256]
mciGetErrorString(Ret Cade.szBuf,256);
char msg [200] ;
strcpy(msg, "Error Opening . "); strcat(msg.
Filename):
MessageBox(NULL.szBuf.msg.MB~OK);
return FALSE;
// The device was opened, get the device ID.
mDeviceID = OpenParms.wDeviceID;
WindowParms.dwCallback = NULL;
WindowParms.hWnd = pWnd->m hWnd;
WindowParms.nCmdShow = SW_S:HOW;
WindowParms.lpstrText = (LPSTR) NULL;
if (RetCode = mciSendCommand (mDeviceID, MCI_WINDOW,
MCI ANIM WINDOW-HWND, (DWOR:D) (LPVOID) & WindowParms))
mMCIErrorCode = RetCod~e;
return FALSE;
mMovieWnd = WindawParms.hWnd;
mOpen = TRUE
return TRUE;
/* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Stop any HyperCD movie, close any open device IDs.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */
void CHyperCD: :Close (void)
// Closing a device ID will stop the video playback.
if (mDeviceID)
mciSendCommand (mDeviceID, MCI CLOSE, OL, NULL):
mOpen = FALSE
mPlaying = FALSE;
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97l20929
68
void CHyperCD: :Update ( )
MCI ANIM UPDATE_PARMS UpdateParams;
UpdateParams.dwCallback = NULL
UpdateParams.hDC = .:GetDC(mMovieWnd);
if (mDevice ID)
mciSendCommand (mDeviceID, MCI_UPDATE,
MCI ANIM UPDATE HDC, (DWORD) (LPVOID)&UpdateParams);
.:ReleaseDC (mMovieWnd,UpdateParams.hDC);
mOpen = FALSE;
mPlaying = FALSE;
* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Start the video playback.
This function immediately returns control back to the
program.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */
BOOL CHyperCD::Start (BOOL bLoop)
DWORD RetCode, dwFlags = OL;
MCI ANIM PLAY_PARMS PlayParms;
//Start playback using the MCI-PLAY command.
PlayParms.dwCallback = NULL;
PlayParms.dwFrom = PlayParms.dwTo = O;
#ifdep WIN32
if (bLoop) dwFlags = MCI DGV_PLA_REPEAT;
#endif
if iRetCode = mciSendCommand (mDeviceID, MCI_PLAY, dwFlags,
(DWORD) (LPVOID) &PlayParms))
mMCIErrorCode = RetCode;
Char szBuf [256l
mciGetErrorString(RetCode,szBuf,256);
mciSendCommand (mDeviceID, MCI_CLOSE, OL, NULL);
mOpen = FALSE;
mPlaying = TRUE;
return TRUE;
BOOL CHyperCD::Realize (void)
//plugins must realize their palette as a
background palette
DWORD RetCode =
mciSendCommand (mDeviceTD, MCI_REALIZE,
MCI_ANIM_REALIZE_BKGD, NULL);
return RetCode;
CA 02271012 1999-05-OS
WO 98l24037 PCTII1S97i20929
69
/*
Pause a video, different f~com close.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */
BOOL CHyperCD::Stop (void)
DWORD RetCode;
// Stop playback by sending the MCI PAUSE command.
if (RetCode = mciSend Command (mDeviceID, MCI_PAUSE,
OL, NULL) )
mMCIErrorCode = RetCode;
mciSendCommand (mDevic:eID, MCI-CLOSE, OL, NULL))
mOpen = FALSE;
return FALSE;
mPlaying = FALSE;
return TRUE;
/* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _. _ _ _ _ _ _ _ _ _ _ _ _ _ _
Rewind the video to the bec_finning and display the
first fram.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */
BOOL CHyperCD::Rewind (void)
DWORD RetCode;
// If the video is playing you must stop it first,
if (mPlaying)
if ( ! Stop ( ) )
return FALSE;
// Use the MCI_SEEK command. to return to the beginning
of the file.
if (RetCode = mciSendComman.d (mDeviceID, MCI_SEEK,
MCI-SEEK TO START, (DWORD) (LPVOID) (NULL)){
mMCIErrorCode = RetCod.e;
mciSendCommand (mDeviceID, MCI_CLOSE, OL, NULL);
mOpen = FALSE;
return = FALSE;
return TRUE;
/* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Forward the video to the end and display the last frame.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
BOOL CHyperCD::Forward (void)
DWORD RetCode;
// If the video is playing yyou must stop it first.
if (mPlaying)
if (!Stop ( ))
CA 02271012 1999-OS-OS
WO 98l24037 PCT/L1S97120929
return FALSE;
// Use the MCI SEEK command to go to the end of the file.
If (RetCode = mciSendCommand (mDeviceID, MCI_SEEK,
MCI_SEEK_TO END, (DWORD) (LPVOID) NULL))f
mMCIError Code = RetCode;
mciSendCommand imDeviceID, MCI_CLOSE, OL, NULL);
mOpen = FALSE;
return FALSE;
return TRUE;
/* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Forward the video by one fxame.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */
BOOL CHyperCD::FrameForward (void)
DWORD RetCode;
MCI_ANIM_STEP_PARMS StepParms;
MCI_STATUS_PARMS StatusParms;
DWORD Length, Position;
// if the video is playing you must stop it first.
if imPlaying)
if ( ! Stop ( ) )
return FALSE;
// Determine the length in frames of the file.
StatusParms.dwItem = MCI_STATUS_LENGTH;
if (RetCode = mciSendCommand (mDeviceID, MCI_STATUS,
MCI_STATUS_ITEM, (DWORD) (LPVOID) &StatusParms))
mMCIErrorCode = RetCode;
mciSendCommand (mDeviceID, MCI_CLOSE, OL, NULL);
return FALSE;
Length = StatusParms.dwReturn;
//Determine the current position of the file.
StatusParms.dwItem = MCI_STATUS_POSITION;
if (RetCode = mciSendCommand (mDeviceID, MCI_STATUS,
MCI_STATUS_ITEM, (DWORD) (LPVOID) &StatusParms)
mMCIErrorCode = RetCode;
mciSendCommand (mDeviceID, MCI_CLOSE, OL, NULL);
return FALSE;
Position = StatusParms.dwReturn;
// If we're already at the end return.
if (Length =- Position)
return TRUE;
// If not already at the end use MCI STEP to move
forward one frame.
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
71
StepParms.dwFrames = IL;
if (RetCode = mciSendCommar.~d (mDeviceID, MCI_STEP,
MCI ANIM STEP FRAMES, (DWOR'.D) (LPVOID) &StepParms))
_ _ _
mMCIErrorCode = RetCod.e;
mciSendCommand (mDeviceID, MCI_CLOSE, OL, NULL);
mOpen = FALSE;
return FALSE:
return TRUE;
Step back the video by one frame.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ~/
BOOL CHyperCD::FrameBack (void)
DWORD RetCode;
MCI ANIM STEP_PARMS StepParms
// If the video is playing 'you must stop it first.
if (mPlaying)
if ( ! Stop ( ) 0
return FALSE;
// Use MCI_STEP to move back one frame.
StepParms.dwFrames = 1L;
if (RetCode = mciSendCommand (mDeviceld, MCT_STEP,
MCI ANIM STEP REVERSE, (DWO1~D) (LPVOID) ~ StepParms))
_ _
mMCIErrorCode = RetCod~°_;
mciSendCommand (mDevicE:ID, MCI CLOSE, OL, NULL);
mOpen = FALSE;
return FALSE:
return TRUE;
DWORD CHyperCD::GetLength (void)
DWORD RetCode;
// Make sure a device is open.
if (!mDeviceID)
return O;
MCI_STATUSIPARMS StatusParm.;;
//Determine the length in frames of the file.
StatusParms.dwItem = MCI_STP,TUS_LENGTH;
if (RetCode = mciSendCommancl (mDeviceId, MCI-STATUS,
MCI_STATUS-ITEM, (DWORD) (LF~VOID) &StatusParms))
mMCIErrorCode = RetCode;
mciSendCommand (mDeviceID, MCI_CLOSE, OL, NULL);
return FALSE;
return (int) StatusParms.dwReturn;
CA 02271012 1999-05-OS
WO 98/24037 PCT/US97/20929
72
DWORD CHyperCD::GetPosition (void)
DWORD RetCode;
j/ Make sure a device is open.
if (!mDeviceID)
return O;
MCI STATUS PARMS StatusParms;
// Determine the current position of the file.
StatusParms.dwItem = MCI_STATUS_POSITION;
if (RetCode = mciSendCommand (mDeviceID, MCI_STATUS,
MCI_STATUS_ITEM, (DWORD) (LPVOID) &StatusParms))
mMCIErrorCode = RetCode;
mciSendCommand (mDevicelD, MCI_CLOSE, OL, NULL);
return FALSE;
return (int) StatusParms.dwReturn;
int CHyperCD::GetWidth (void)
//Make sure a device is open.
if (!mDeviceID)
return 0;
MCI ANIM RECT PARMS RectParms;
//Use MCI WHERE to get the video window rectangle.
mciSendCommand (mDevicelD, MCI WHERE, (DWORD)
MCI ANIM WHERE SOURCE. (DWORD)~(LPVOID) &RectParms);
return (int) RectParms.rc.right;
int CHyperCD::GetHeight (void)
// Make sure a device is open.
if (!mDeviceID)
return O;
MCI ANIM RECT,PARMS RectParms;
// Use MCI WHERE to get the video window rectangle.
mciSendCommand (mDeviceId, MCI_WHERE, (DWORD)
MCI ANIM WHERE SOURCE, (DWORD) (LPVOID) &RectParms);
return (int) RectParms.rc.bottom;
CString CHyperCD::GetError String (void)
static const char "Strings[ ] - {
"Could not set the position for the video
in the window.".
};
char Error Buffer (MAXERRORLENGTH);
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
73
// An error was generated from within the CHyperCD class.
if (mErrorCode =- 1)
return (CString) Stringsfof;
// An error was generated from a MCI function call.
else if (mciGetErrorString (mMCIErrorCode, (LPSTR)
ErrorBuffer,
MAXERRORLENGTH))
return (CString) Error Buffer;
// There is no error.
else.
return (CString) ("There is no error or the error
is undefined.")
/* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A private function that simply positions the video window in
the center of the parent window.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */
BOOL CHyperCD::Center (void)
DWORD RetCode;
CRect BoundsRect, MovieRect, WindowRect;
MCI ANIM RECT PARMS RectParms;
// Use MCI_WHERE to get the video window rectangle.
if (RetCode = mciSendCommand (mDeviceID, MCI WHERE,
( DWORD )
MCI_ANIM_WHERE_SOURCE, (DWORD) (LPVOID) &RectParms))
return FALSE;
// Determine the parameters for the playback window.
BoundsRect - RectParms.rc;
MovieRect.left = O;
MovieRect.top = O;
MovieRect.right - MovieRect.left + BoundsRect.right;
MovieRect.bottom = MovieRect.top + BoundsRect.bottom;
.:GetWindowRect (mMovieWnd.&WindowRect);
// Move the playback window.
MoveWindow (mMovieWnd, (WindowRect.Width( ) -
MovieRect.Width( ))/2,
(WindowRect . Height ( } -
Movi~~Rect . Height ) ( ) ) /2
BoundsRect.right.
BoundsRect . bottom, TRUE) ;
return TRUE;
SUBSTITUTE SWEET (RULE 26)
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
74
The following is the software code listing for the
requesting, end-user's computer for the embodiment of Fig. 12.
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
?5
/*____________________________________________..__________________________
//
// HyperKey
i/
// The architecture of HyperKey allows for
// authorized and secure rendering of encrypted multimedia object
// from the protected web site. The encrypted HyperKey media object is
protected
// by crippling the media. Only authorized user can obtain
// trigger/keys from the server to unlock the HyperKey media.
//
_______________________________________________.._______________________*/
#ifndef _WIN32
#define _WIN32
#endif
#ifndef _NPAPI_H_
#include "npapi.h"
#include "plgwnd.h"
#include "CHyperCD.h"
#endif
#include <mmsystem.h>
#include <qtw.h>
#include <time.h>
#include <string.h>
#include <io.h>
#include <fcntl.h>
#include <sys/stat.h>
//-
_______________________________________________________________________________
____
// NPP_Initialize:
//______
_____________________________________________________________________________
NPError NPP Initialize(void)
DEBUG_TEST("NPP Initialize")
return NPERR NO ERROR;
)
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
76
//-
_______________________________________________________________________________
____
// NPP Shutdown:
//-_____
_____________________________________________________________________________
void NPP Shutdown{void)
( _
DEBUG_TEST{"NPP~Shutdown")
return;
//-
_______________________________________________________________________________
____
// NPP New:
//-_____
_____________________________________________________________________________
NPError NP_LOADDS
NPP New(NPMIMEType pluginType,
NPP instance,
uint 16 mode,
int 16 argc,
char* argn[],
char* argv[],
NPSavedData* saved)
f
DEBUG TEST("NPP~New")
if (instance --- NULL)
return NPERR INVALID INSTANCE ERROR;
instance->pdata = NPN_MemAlloc{sizeof~I'luginInstance));
PluginInstance* This = (PluginInstance*) instance->pdata;
if (This != NULL)
This->window = NULL;
This->cHygercd = new CHyperCD();
This->mode = mode;
for ( idx =0; idx<argc; idx++) f
strcpy(szArg, argn[idx]);
strcpy(szValue, argv[idx]);
// Check web tags and set HyperKey flags
SetHyperKeyFlags(szArg, szValue);
if~bDemandHyperKey)
goto parsing embed tags;
CA 02271012 1999-OS-OS
WO 98/24037 PCTlUS97/20929
7?
for ( idx =0; idx<argc; idx-+-i-) {
strcpy(szArg, argn[idx]);
strcpy(szValue, ar;gv[idx]);
ParseHyperKeyTags 1 (szArg,szValue);
if~!bDemandHyperKey)
SysIO(sSYSFILE)E;
for (idx =0; idx<argc; idx++)
{
strcpy(szArg, argn[idx]);
strcpy(szValue, argv[idx]);
ParseHyperKeyTags2(szArg,szValue);
parsing_embed tags:
instance->pdata = This;
return NPERR NO ERROR;
else
return NPERR OUT OF MEMORY ERROR;
static void UnSubclass(PluginInstance *T'his)
{
WNDPROC OldWndProc;
WNDPROC* Iplpfn = This->windov~r->GetSuperWndProcAddr();
DEBUG TEST("UnSubclass")
if ( !*lplpfn )
{
ASSERT(0);
return;
// Set the original window procedure
OldWndProc = (WNDPROC):: SetWindowLong( This->window->m hWnd,
GWL WNDPROC, (LONG) *lplpfn );
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
78
// A subclassed window's procedure is always AfxWndProc.
// If this is not TRUE, then it's not a subclassed window.
if ( OldWndProc != AfxWndProc )
ASSERT(0);
static void KillHyperCDWindow(Plu~inInstance *This)
{
DEBUG TEST("KillHyperCDWindow")
if (This->cHypercd) {
This->cHypercd->Close();
delete This->cHypercd;
This->cHypercd = NULL;
)
CleanUpHyperKey();
UnSubclass(This);
if (This->window) {
This->window_>Detach();
delete This->window;
This->window = NULL;
//-
_______________________________________________________________________________
____
// NPP_Destroy:
//-
_______________________________________________________________________________
____
NPError NP_LOADDS
NPP Destroy(NPP instance, NPSavedData** save)
{ _
if (instance = NULL)
return NPERR INVALID INSTANCE ERROR;
PluginInstance* This = (PluginInstance*) instance->pdata;
1/
// Note: If desired, call NP MemAlloc to create a
// NPSavedData structure containing any state information
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
79
// that you want restored if this plugin instance is later
// recreated.
//
if (This != NULL)
KilIHyperCDWindow(This);
NPN MemFree(instance->pdata);
return NPERR NO ERROR;
//-
_____________________________________________..________________________________
_____
// NPP SetWindow:
//-_____
_______________________________________.._____________________________________
NPError NP_LOADDS
NPP SetWindow(NPP instance, NPWindow* np_window)
DEBUG TEST("NPP SetWindow")
if (instance = NULL)
return NPERR INVALID INSTANCE ERROR;
PluginInstance* This = (PluginInstance:*) instance->pdata;
//
// Note: Before setting fWindow to point to the
// new window, you may wish to compare the new window
// info to the previous window (if any) to note window
// size changes, etc.
//
if (!np window)
return- NPERR GENERIC ERROR.;
if (!instance)
return NPERR INVALID-INSTANCE ERROR;
if (!This)
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
return NPERR GENERIC ERROR;
if (!np window->window && !This->window) // spurious entry
return- NPERR NO ERROR;
if (!np window->window && This->window)
{ // window went away
KillHyperCDWindow(This);
return NPERR NO ERROR;
if (!This->window && np'window->window)
{ // First time in -- no window created by plugin yet
This->window = (CPluginWindow *) new CPluginWindow{);
if (!This->window->SubclassWindow((HVVND)np window->window))
MessageBox(NULL,"SubclassWindow Failed","HyperCD",MB OK);
return NPERR -GENERIC ERROR;
_ _
// Save This pointer in window class member variable..this lets the
// window message handling have access to the data pointer easily
This->window->StoreData(This);
// resize or moved window (or newly created)
This->window->InvalidateRect(NUL,L);
This->window->UpdateWindow();
return NPERR NO ERROR;
//-
_______________________________..______________________________________________
_____
// NPP NewStream:
//-_____. ____________________-
_______________________________________________________
NPError NP_LOADDS
NPP_NewStream(NPP instance,
NPNIIMEType type,
NPStream *stream,
NPBooI seekable,
uint 16 * stype)
DEBUG TEST{"NPP NewStream")
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
81
if (instance = NULL)
return NPERR_INVALID INSTAIVCE_ERROR;
Pluginlnstance* This = (Pluginlnstance*) instance->pdata;
*stype = NP ASFILE;
return NPERR NO ERROR;
int32 STREAMBUFSIZE = OXOFFFFFFF; // If we are reading from a file in
NPAsFile
l/ mode so we can take any size stream in our
// write call (sincE; we ignore it)
//-
_______________________________________________________________________________
____
/I NPP WriteReady:
//______________________________________________.._____________________________
________
int32 NP LOADDS
NPP WriteReady(NPP instance, NPStream *stream)
DEBUG TEST("NPP WriteReady")
if (instance != NULL)
f
Pluginlnstance* This = (Pluginlnstance*) instance->pdata;
)
return STREAMBUFSIZE; // Number of bytes ready to accept in
NPP Write()
//-
_____________________________________________..________________________________
_____
// NPP_Write:
//-
_______________________________________________________________________________
____
int32 NP LOADDS
NPP Write(NPP instance, NPStream *stream, int32 offset, int32 len, void
*buffer)
DEBUG TEST("NPP Write")
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
82
if (instance != NULL)
(
PluginInstance* This = (PluginInstarice*) instance->pdata;
return len; // The number of bytes accepted
//-_____________-
_____________________________________________________________________
// NPP DestroyStream:
//-_____. ___-_______________-________________________________________________-
_______
NPError NP_LOADDS
NPP DestroyStream(NPP instance, NPStream *stream, NPError reason)
DEBUG TEST("NPP DestroyStream")
if (instance = NULL)
return NPERR_INVALID_INSTANCE_ERROR;
PluginInstance* This = (PluginInstance*) instance->pdata;
return NPERR_NO ERROR;
//-______________-________________________________-_______________-
___________________
// NPP StreamAsFile:
//-_____ ~____________________________________________________________________-
____-__
void NP_LOADDS
NPP StreamAsFile(NPP instance, NPStream *stream, const char* szStream)
(
DEBUG TEST("NPP StreamAsFile")
if (instance = NULL)
return;
PluginInstance* This = (PluginInstance*) instance->pdata;
if (!This->cHypercd)
return;
// Obtain object/keys
ObtainKey(Object, szStream);
i~bDemandHyperKey)
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
83
{
if~ObjectType(Object) - PGI HYPERKEY) // file in
bDemandHyperKey
{// 1. check we have permission
Permission = Perm~issionFromWebtoUseHyperKey();
// if our right is louver than the permitted, return
if(Permission.right > User.right)
return;
// 2. if we have permission, get the access path
strcpy(szPath, GetAccessPath(Permission));
// 3. retrieve the object and wait
Retri eveHyperKeyObj ect( szPath);
return;
// B. check if the streamed file is PGI_MEDIA
else ifs ObjectType(Object) _= PGI_MEDIA) // jpeg, avi,
encrypted media type
{
DispIayObject(Object );
else // anything else under 'bDemandHyperKey, is not valid
return;
else// for this version, return and not process other command
return;
//-
______________________________________________.._______________________________
_____
J/ NPP_Print:
//-_____
________________________________________..____________________________________
void NP_LOADDS
NPP Print(NPP instance, NPPrint* printInfo)
{ _
DEBUG TEST("NPP Print")
i~printInfo = NULL) // trap invalid p-arm
CA 02271012 1999-OS-OS
WO 9S/24037 PCT/U597/20929
84
return;
if (instance != NULL)
PluginInstance* This = (PluginInstance*) instance->pdata;
if (printInfo->mode = NP FULL)
//
// Note: If your plugin would like to take over
// printing completely when it is in full-screen mode,
// set printInfo->pluginPrinted to TRUE and print your
// plugin as you see fit. If your plugin wants Netscape
l/ to handle printing in this case, set printInfo->pluginPrinted
II to FALSE (the default) and do nothing. If you do want
// to handle printing yourself, printOne is true if the
// print button (as opposed to the print menu) was clicked.
// On the Macintosh, platformPrint is a THPrint; on Windows,
// platformPrint is a structure (defined in npapi.h) containing
// the printer name, port, etc.
/l
void* platformPrint = printInfo->print.fullPrint.platformPrint;
NPBooI printOne = printInfo->print.fullPrint.printOne;
printInfo->print.fullPrint.pluginPrinted = FALSE; // Do the default
else // If not fullscreen, we must be embedded
f
//
/i Note: If your plugin is embedded, or is full-screen
// but you returned false in pluginPrinted above, NPP_Print
// will be called with mode = NP_EMBED. The NPWindow
// in the printInfo gives the location and dimensions of
// the embedded plugin on the printed page. On the Macintosh,
// platformPrint is the printer port; on Windows, platformPrint
// is the handle to the printing device context.
//
NPWindow* printWindow = &(printInfo->print.embedPrint.window);
void * platformPrint = printInfo->print. embedPrint. platformPrint;
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
//-
____________________________________________,__________________________________
_____
// NPP_HandleEvent:
// Mac-only.
//____________________________________________.._______________________________
_______
intl6 NPP HandleEvent(NPP instance, void* event)
NPBooI eventHandled = FALSE;
if (instance = NULL)
return eventHandled;
PluginInstance* This = (PluginInstance*) instance->pdata;
//
// Note: The "event" passed in is a Macintosh
// EventRecord*. The event.what field can be any of the
// normal Mac event types, or one of the following additional
// types defined in npapi.h: getFocusEvent, loseFocusEvent,
// adjustCursorEvent. The focus events inform your plugin
II that it will become, or is no longer, ~:he recepient of
// key events. If your plugin doesn't want to receive key
/l events, return false when passed at ~;etFocusEvent. The
// adjustCursorEvent is passed repeatedly when the mouse is
// over your plugin; if your plugin doe<.~n't want to set the
/l cursor, return false. Handle the standard Mac events as
// normal. The return value for all standard events is currently
// ignored except for the key event: for key events, only return
// true if your plugin has handled that particular key event.
//
return eventHandled;
j
h: mg: hyperkey: npshell. cpp
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
86
//*************************************************************
//
// HyperCD I/O
//
// Function:
// Remap-decrypt-decode and merge the
// missing CRITICAL DATA with the CRIPPLED
// HyperCD files.
//
//*************************************************************
#include <windows.h>
#include <mmsystem.h>
#include <digitalv.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
InsertHyperCDIOModule();
RemoveHyperCDIOModuleQ;
OPEN HYPERCDQ;
HDVDCALLBACK HYPERCDIO(LPHYPERCDINFO)
{
switch (uMessage) {
case MMIOM_OPEN:
HYPERCD Open();
return 0;
case MMIOM_CLOSE:
HYPERCD CloseQ;
return 0;
case MMIOM_READ:
HYPERCD_ReadMultipleFilesQ;
return (LPHYPERCDINFO.displacement);
case MMIOM_SEEK:
switch (IParam2) {
case SEEK_SET: // seek to the absolute position relative to
original beginning
HYPERCD SeekSet();
break;
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
8'T
position
default:
case SEEK CUR: // move forward relative to the current
HYPERCD SeekCurQ;
case SEEK END: /i seek all the way to the end
HYPERCD SeelcEnd();
break;
}
return ~iYPERCD OffscaQ;
return - I ;
} h:\word
CA 02271012 1999-OS-OS
WO 98/24Q37 PCT/U597/20929
88
The following is the software listing for encrypting the
data on the DVD-ROM and cripples the data files thereon
allowing playback only on a DVD player that recognizes the
Hyper-DVD nature of the DVD-ROM.
llIllllllllllllllllllllllllllllllllllllllllllllllllllll
// cutter.c
//
// Function; this routine cuts a DVD file into multiple
// sections and encrypts them onto a DVD rom.
// Critical section will be removed and stored on remote
j/ server. This also alerts DVD player to foreign file
// format and initiates search for permission keys.
llllllllllllllllllllllllllllllllllllllllllllllllllllllll
#include <Windows.h>
#include <stdlib.h>
#include <stdlo.h>
#include <time.h>
#include <string.h>
#include <sys\types.h>
#include <sys\stat.h>
#define MAX HAEDER_SIZE 64000
szBuffer PGQ[MAX HAEDER SIZE];
void f111Junk(chax * statBuffer,Int n);
intFileCutter(HWND hWnd,char *fn)
Int V,T,L,nType;
Int n;
Int DEBUG =O;
FILE *pinputFile, *out;
char filename [MAX STR] ;
char header [MAX HEADER] , *p, msg [MAX_STR] ;
char sxNumber[MAX STR];
struct_stat statBuffer;
Int nResult;
long IRemainBytes;
long IReadBufferSize;
long IFileSize;
long IIndex;
long IBytesRead.IBytesWrite;
charszinFile [128] , szOutFile [128] , *pin, *pOut;
char szOutfile_PGZ [ ] = BIG. PGQ" ;
FILE *out2;
//get switch -s
strcpy(filename.fn);
CA 02271012 1999-OS-OS
WO 98/24037 PCTlUS97/20929
8 5~
_strupr(filename);
p=filename;
pin=szinFile;
//first SPACE
whlle(p*= _")
p ++;
//copy IN file name
while(*p !-"&&*pl=0)
*pin ++ _ *p++;
//skip SPACE
while(*p==")
p++;
while(*p="&&*pl=O)
*pout++ _ *p++;
*pin = '\O';
*p0ut = 'O';
//open files
If(strlen(szinFile)==O)
MessageBox(NULL, "Please drag&drop the file to me.\r\n
in DOS, type\"encoder files\".",Encoder V1.2", MB OK);
return O;
/*Open file pinputFile bin mode; */
if ( (pinputFile = fopen (szi.nFile, "rb" ) ) -=NULL)
MessageBox(NULL, szinFile, "Error reading file",
MB OK) ;
return O;
// Now read nd cut the file: into many parts;
// Critical part: filename.pgq --> stay on remote server
// Chunky part; filename.pg~z --> on local media such as
DVD-Rom
IBytesRead= fread (szBuffer PGQ, sizeof(char),
MAX'HAEDER SIZE,pinputFlle);
If (out2 - fopen (sz0utfile PGZ, "w+b" ) ) -=NULL)
MessageBox(NULL,szOutfile_PGZ, "Error creating PGQ
file", MB_OK);
return O;
IBytesWRite=fWrite (szBuffer PGQ, sizeof(char),
IBytesRead,out2);
if(BytesWrite 1+ IBytesRead)
MessageBox(NULL, "", IBytesWRite 1 = IBytesRead",
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
MB OK) ;
fclose(out2);
// now
the
chunky
part
// filetype
if(strstr(szinFile, 1 = NULL)
".AVI")
nType = 1;
else (strstr(szinFile, .EXE") 1 = NULL}
if "
nType = 2;
else (strstr(szinFile, .MOV") 1 = NULL)
if "
nType = 3;
else (strstr(szinFile, .MPG") 1 = NULL)
if "
nType = 4;
else (strstr(szinFile, .JPG") 1 = NULL)
if "
nType = 6;
else (strstr(szinFile, .GIF") 1 = NULL}
if "
nType = 7;
else (strstr(szinFile, .PIC") 1 = NULL)
if "
nType = 8;
else (strstr(szinFile, .TXT") 1 = NULL)
if "
nType = 9;
else (strstr(szinFile, .HTM") 1 = NULL)
if "
nType = 10;
else (strstr(szinFile, .VOB") 1 = NULL)
if "
nType = 11;
else
MessageBox(NULL, "Unrecognizable file", "Encoder
Error", MB_OK);
return O;
If(strien(szOutFile} -=O)
strcpy(szOutFile, szinFile);
pout = strstr(szOutFile,".");
pout + +;
strcpy(pout, "PGZ");
pout + =3;
*pOut=O;
wsprintf(msg,"Output file not specified,\nNew
output file: [%s) ", szOutFile} ;
MessageBox(NULL,msg, "Warningl", MB OK);
If((out = fopen(szOutFile, "w+b")) -- NULL)
MessageBox(NULL, szOutFile, "Error creating file",
MB OK) ;
return O;
DEBUGGER(DEBUG,szOutFile, "File createdl");
CA 02271012 1999-OS-OS
WO 98I24037 PCT/US97/20929
91
//Add HyperLOCK HyperDVD header
AddHyperDVDHeader0;
CutFileIntoMultiplePartsO;
WriteKeyFilesO;
WriteChunkyFiles( );
CloseHDVDFilesO;
CutFileIntoMultipleParts( )
// Create new data structure to hold
// critical data/keys table/list
pKeyStruct = new HCDKay;
pChunkTable = new HCDChunk;
ExtractKeys (pKeyStruct) pChunkTable);
// now we have keys & chunky data, encryptChunkydata
Encryptl(pChunkTable, encrypt method),
Encrypt2(pKeyStruct, en - m~ethod2),
// Add encryption method to key structure
Add EMethod ( ) encryp method);
return;
CA 02271012 1999-OS-OS
WO 98/24037 PCT/US97/20929
92
The following is the software listing for determining if
a standard or Hyper DVD-ROM is to be played by the player,
and for seeking the enabling data, trigger or key from a
server or a cable-service provider for providing the missing
data necessary for the DVD-player to play a Hyper-DVD.
CA 02271012 1999-OS-OS
WO 98/24037 PCT/LTS97/20929
93
//
// Player. c
//
// Function:
// This file shows a HyperDVD player that
// plays back HyperDVD files that have been
// encrypted using lHyperLOCK patents pending
// technologies.
//
//
//
void PlayRegularDVD(void);
GetPermissionFromRemoteServer(int *pPermission);
Display(int Message);
void PIayHyperDVD(void)
// HyperDVD files that are protected by using
// special combinations of county-code and parental
// control code will not play in regular DVD players.
// The following function turns on the appropriate
// switches to allow the files being able to display.
TurnOnHardwareSettings();
PIayDVD();
// A power-on switch starts this algorithm
int main(int argc, char * *argv)
if~bIsHyperDVDROM()--- TRL7E)
GetPermissionFromRemoteServer(&Permitted);
if~Permitted = TRUE)
PlayHyperDVD();
else
else
Display(HYPERDVD WARNING MESSAGE);
PlayReguIarDVD();
return l;
CA 02271012 1999-OS-OS
WO 98l24037 PCT/U897/20929
94
While specific embodiments of the invention have
been shown and described, it is to be understood that nu-
merous changes and modifications mar be made therein without
departing from the scope) spirit and intent of the invention
as set forth in the appended claims.