shawn
shawn

Reputation: 4223

How can a service detect when windows has started completely?

I'm writing a service and the service uses WMI to get the mac address of the system, problem is if the service starts on boot, it seems that the information I get is different than when I get after the operating system is fully initialized. Hence, how can I detect that the OS is initialized so that I can get the proper mac address?

languages are C and java, platforms are windows 7 and windows xp

Upvotes: 2

Views: 151

Answers (1)

Peter Lawrey
Peter Lawrey

Reputation: 533750

Normal hosts take their MAC address from the hardware which does not change. There is no specific point at which you can say an OS has started fully, you just have to wait.

I suspect the mac address change is not something the OS will notify you about or is dependant on when the OS starts, its likely that this just happens at about the same time.

Upvotes: 1

Related Questions