I'm not sure what you mean by detecting pcx data, but if you call GetBitmapFromFile with your .pcx file as an input, you can then call GetBitmapInfo on the resulting CVI bitmap. By then, the data is no longer specific to the PCX specification, but it's generic bitmap data, in a device independent format.
Luis Gomes
NI