Difference between revisions of "LibPDL Research"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
// Orientation: 0=bottom, 1= right, 2=top, 3=left | // Orientation: 0=bottom, 1= right, 2=top, 3=left | ||
int PDL_SetOrientation(int Orientation); | int PDL_SetOrientation(int Orientation); | ||
− | + | ||
// portnum is number of port, enabled is 0 or 1 | // portnum is number of port, enabled is 0 or 1 | ||
int PDL_SetFirewallPortStatus(int portnum, int enabled); | int PDL_SetFirewallPortStatus(int portnum, int enabled); | ||
− | + | ||
// note: something needs to be larger than 63, not sure what it controls right now | // note: something needs to be larger than 63, not sure what it controls right now | ||
// but anything above 64 will fill the buffer with the device nduid | // but anything above 64 will fill the buffer with the device nduid | ||
int PDL_GetUniqueID(char * buffer, int something); | int PDL_GetUniqueID(char * buffer, int something); | ||
− | + | ||
//sets buffer to device name, returns 0 on success... | //sets buffer to device name, returns 0 on success... | ||
int PDL_GetDeviceName(char * buffer); | int PDL_GetDeviceName(char * buffer); |
Revision as of 21:42, 27 January 2010
This is not complete. Things seem to fail if you don't SetOrientation first... still need to investigate these more.
// Orientation: 0=bottom, 1= right, 2=top, 3=left int PDL_SetOrientation(int Orientation); // portnum is number of port, enabled is 0 or 1 int PDL_SetFirewallPortStatus(int portnum, int enabled); // note: something needs to be larger than 63, not sure what it controls right now // but anything above 64 will fill the buffer with the device nduid int PDL_GetUniqueID(char * buffer, int something); //sets buffer to device name, returns 0 on success... int PDL_GetDeviceName(char * buffer);