mirror of
https://github.com/sheumann/NetDisk.git
synced 2024-09-27 12:57:51 +00:00
20 lines
396 B
C
20 lines
396 B
C
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
#include <gsos.h>
|
||
|
|
||
|
#define MountURL 0x8080
|
||
|
|
||
|
int main(int argc, char **argv) {
|
||
|
DAccessRecGS controlRec = {5};
|
||
|
|
||
|
if (argc < 3)
|
||
|
return;
|
||
|
|
||
|
controlRec.devNum = strtoul(argv[1], NULL, 0);
|
||
|
controlRec.code = MountURL;
|
||
|
controlRec.list = argv[2];
|
||
|
controlRec.requestCount = strlen(argv[2]) + 1;
|
||
|
|
||
|
DControl(&controlRec);
|
||
|
}
|