Jump to content
Sign in to follow this  
ChrisL

MSW, MSByte, LSByte, LSW

Recommended Posts

ChrisL

I have a value returned from a dll

$dwSts = 0x00000004

and the explanation to decode it is as follows

into MSW (most significant WORD)

the MSByte is the irrecoverable error status

the LSByte is recover status

into LSW (less significant WORD)

the MSByte is the user status

the LSByte is paper status

I'm afraid I don't understand what I'm supposed to do, can anyone help?

Thanks

Chris

Share this post


Link to post
Share on other sites
ChrisL

Never mind, I figured it out

(0x)0000 is MSW

Then if you split that down

MSByte is the first byte the left hand 00

LSByte is the right hand byte the right hand 00

LSW is the remaining 0004

MSByte is 00

LSByte is 04

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×