Would like to roll out something in Access 2.0 to read MAC
address on 16-bit systems. Have resolved on 32-bit platforms
but still need help with Access Basic code to do it from within
Access 2.0. 28 2197
On Fri, 01 Jul 2005 14:16:52 -0400, MLH <CR**@NorthStat e.net> wrote: Would like to roll out something in Access 2.0 to read MAC address on 16-bit systems. Have resolved on 32-bit platforms but still need help with Access Basic code to do it from within Access 2.0.
Hi
Best of luck.
If you mean 16 bit platform eg Win3 don't think you can get it using
API, it is in device driver for network card or in INI file
somewhere.
If you mean running Access2 on 32 bit machine I would store the MAC in
a file by running some other (32 bit) program first, then read from
the file.
Note, MAC not always same as NIC eg machine may have been ghosted,
or be linked by cable modem and USB.
HTH David
<censored>
Yep. Sure do. Some customers have 16-bit win3x boxes and I'm bending
over backwards to support them. I like A2.0 and am quite familiar with
it. Since I can do it, I do. But reading the MAC address, I'm probably
gonna need a C-program to do the work & write the results to a text
file. I was just hoping Access Basic and an API call might do the
trick.
That last note shakes me a bit. I definitely want to read it directly
off the hard-coded address on the NIC itself. What does ghosting
mean and what impact might cable modem links and USB have on
my reading the NIC's MAC address. I can't afford to screw up. There's
no room for ambiguity, I'm afraid.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xx Best of luck. If you mean 16 bit platform eg Win3 don't think you can get it using API, it is in device driver for network card or in INI file somewhere. If you mean running Access2 on 32 bit machine I would store the MAC in a file by running some other (32 bit) program first, then read from the file. Note, MAC not always same as NIC eg machine may have been ghosted, or be linked by cable modem and USB. HTH David
David, important is the fact that I'm running software locally
on the PC in which the NIC is installed and it is that local
NIC whose MAC address I'm attempted to read. I'm not trying
to read one across a network or WAN or anything like that.
Am I still facing the host of uncertainties you mentioned?
"MLH" <CR**@NorthStat e.net> wrote . . .. But reading the MAC address, I'm probably gonna need a C-program to do the work & write the results to a text file. I was just hoping Access Basic and an API call might do the trick.
Very likely, you can find an API call that will work with Access Basic.
Almost, but not quite, all API calls that could be done from VB could also
be done from Access Basic. So, the place to start searching for those calls
would be VB websites (a good starting point is http://www.mvps.org, then
find the links to MVP's websites for VB -- almost all of them will have a
lot of API information, and some may go back to Win 3.x days) or VB
newsgroups (you can search the old posts at http://groups.google.com....
comp.lang.basic .visual.misc is a USENET newsgroup where you might start
searching).
Don't rush out to hire a C programmer, or brush up your 16-bit dialects of C
programming skills, before you poke around a bit.
Larry Linson
Microsoft Access MVP
On Sat, 02 Jul 2005 04:01:01 GMT, "Larry Linson"
<bo*****@localh ost.not> wrote: "MLH" <CR**@NorthStat e.net> wrote
. . .. But reading the MAC address, I'm probably gonna need a C-program to do the work & write the results to a text file. I was just hoping Access Basic and an API call might do the trick.
Very likely, you can find an API call that will work with Access Basic. Almost, but not quite, all API calls that could be done from VB could also be done from Access Basic. So, the place to start searching for those calls would be VB websites (a good starting point is http://www.mvps.org, then find the links to MVP's websites for VB -- almost all of them will have a lot of API information, and some may go back to Win 3.x days) or VB newsgroups (you can search the old posts at http://groups.google.com.... comp.lang.basi c.visual.misc is a USENET newsgroup where you might start searching).
Don't rush out to hire a C programmer, or brush up your 16-bit dialects of C programming skills, before you poke around a bit.
Larry Linson Microsoft Access MVP
Hi
My belief is that Win3 didn't support network cards directly but that
there was some DOS thingy which set up the information in the driver,
either in booting up or on installation. I don't think there is any
direct API to get it. It may be possible to shell out to ipconfig in
some way.
David
MLH wrote: Would like to roll out something in Access 2.0 to read MAC address on 16-bit systems. Have resolved on 32-bit platforms but still need help with Access Basic code to do it from within Access 2.0. http://www.planetsourcecode.com/vb/s...50934&lngWId=1
--
[OO=00=OO]
On Fri, 01 Jul 2005 22:51:29 -0400, MLH <CR**@NorthStat e.net> wrote: David, important is the fact that I'm running software locally on the PC in which the NIC is installed and it is that local NIC whose MAC address I'm attempted to read. I'm not trying to read one across a network or WAN or anything like that.
Am I still facing the host of uncertainties you mentioned?
Hi
(this answer is for Win32, not 16 bit platforms)
Not the cable modem one, not sure about the other.
Ghosting is used when support staff need to set up a lot of PCs with
the same configuration. They normally all have the same MAC.The MAC
can also be spoofed for other reasons, eg see "change Mac Address in
seconds!" at http://amac.paqtool.com/
or look at http://www.klcconsulting.net/smac/readme.htm
which says
"SMAC was developed for RESPONSIBLE, LEGAL AND ETHICAL USE ONLY!!!"
The registry holds the spoofed MAC, not sure what NetBIOS can give
you.
David
..
<censored>
Sounds interesting, but can I get a MAC address with ipconfig somehow? Hi My belief is that Win3 didn't support network cards directly but that there was some DOS thingy which set up the information in the driver, either in booting up or on installation. I don't think there is any direct API to get it. It may be possible to shell out to ipconfig in some way. David This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jason Brown |
last post by:
I can't find any javascript that displays a banner according to a
user's country. Is this not possible?
If not javascript then maybe php or ssi displayed into a page via an
iframe. Does anyone know of a free script that shows a banner
according to country?
Jason
|
by: Greg M |
last post by:
I have 5 years of MS Access/VBA development experience and am moving
into the VB.net world. I am seeking a tutor which could facilitate
this move.
I live in Anderson, IN and am willing to travel to Indianapolis or
within 50 miles of my home. I have some specific questions that I
would like answered/explained to me. I would also like to develop a
mentoring relationship which would allow me to ask questions in the
future as well (for a...
|
by: joelbyrd |
last post by:
I have a people-networking type site in which each user has their own
profile page, with their user id encoded. So, for example, the web
address of their page might look like
"www.example.com/my_profile.php?user_id=fdjkhfh2489298hf298h3s0dhfxj".
I want the users to be able to choose their own web address that would
look like "www.example.com/Joel", and then when they type in that
address, they are automatically redirected to their profile...
|
by: MLH |
last post by:
Anyone ever experiement importing WAB data
directly into A97? Would lke a chance to look
at any work done in this arena.
|
by: Cheryl Langdon |
last post by:
Does anyone know if there is a way to globally turn off ALL control
tips in Access 2003 using VBA code?
Thanks.
--- CL
| |
by: ramasubramanian.rahul |
last post by:
hi
i was doing some tinkering and wrote the following code on a HPUX
#include<stdio.h>
2 int main(){
3 char *buf = malloc( 100 );
4 int a = * ( int * ) ( buf + 13 );
5 }
this thing prompyly gave a bus error
i know that this is an example of misaligned access .. i believe that
|
by: kolmogolov |
last post by:
/*
Hi, I have removed things irrelevant to reproducing the problem.
What's wrong with my code? Thanks in advance for any hint!
1166425362
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
|
by: evancater |
last post by:
My client wants to make their Access 2007 database available to
offices around the country with multi-user permissions set to control
access to the tables and forms, etc. The easiest thing would be a
client/server app, but they are concerned that accessing the backend
on their VPN would be too slow.
We've discussed the possibility of publishing the forms to the
intranet with ASP, but I'm concerned that web development with Access
is a...
|
by: dhcrusoe |
last post by:
Greetings,
My apologies if this message comes across as spam; it isn't meant to
be.
A group of colleagues and I have built a project to mobilize
technology volunteers for small nonprofit organizations, located at
http://www.codekindness.org . It's a simple technology, and simply
acts to link potential volunteers with individual projects. It's
nonprofit.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |